Serin with 20X2 at 64Mhz?

matherp

Senior Member
Hi all

I've got a circuit working (28X1 at 16Mhz) that amongst other things parses a 4800 baud GPS feed (could also be set to 9600) using the qualifiers on the serin command to select the message of interest ("$GPRMC"). This is really easy to code and works very well but I want more CPU power to do more complicated processing between messages (every second) so would like to move to the 20X2 at 64Mhz.

Is it possible to run a 4800 or 9600 baud serin on a 20X2 at 64Mhz? If so can anyone let me have the numerical values for N4800_64, T4800_64, N9600_64 and T9600_64?

I know I can code all this from first principles using hserin but I only want the one message and don't want to have to code to ignore the others unless necessary.

Apologies if this has been covered elsewhere but I couldn't find anything with search.

Thanks

Peter
 

matherp

Senior Member
Martin

Thanks for the reference. As I read it if I put, for example, N600_4, I'll effectively get N9600_64 when clocked at 64Mhz.

Best Regards

Peter
 

hippy

Ex-Staff (retired)
N600_4, I'll effectively get N9600_64 when clocked at 64Mhz.

Yes, but you may as well use N9600_64 - Perhaps you don't have the latest Programming Editor installed - Version 5.2.7 ( though I thought it was also supported in 5.2.6 ) ?

Serial out rather than serial in, but this works for me ...

#Picaxe 20x2
#Terminal 9600
#No_Data
#No_Table

SetFreq M64
Do
For b0 = "A" to "Z"
SerOut C.0, N9600_64, ( b0 )
Next
SerOut C.0, N9600_64, ( CR, LF )
Pause 8000
Loop
 
Top