Hi all,
I've been thinking of this project for a while and only got round to building some HW to start testing it at the weekend and need some advice to move it forward. I've seen lots of topics about KEYIN, LCD, SERIN and SEROUT but nothing combining them all.
What I want to do: I'm playing a lot with amateur radio type PICAXE projects and more specifically in the new arena of D-Star. D-Star allows 1200baud serial data to be transferred simultaneously with speech although the radio interface is either 9600 or 38400 baud but don't worry about this just now. One of the common programs for this 1200 baud stream is simple texting or messaging. I would like to have a PIC with a keyboard interface, and SERIN and SEROUT to the D-Star radio and an LCD (4 lines?) to display incoming and typed serial messages. Basically remove the PC.
As some PICs support KEYIN and SEROUT I thought I'd have a go and start testing with an 18x at the weekend and low and behold I've got a program which can read the key presses on the keyboard and send them out using SEROUT and the D-Star radio transmits it (D-Star radios support auto TX when something is seen on the serial interface). I've not done anything with an LCD yet.
The problem is it transmits only one character at a time and I want to buffer anything typed on the keyboard, say upto 160 characters and then send them out in one go when CR (RETURN) is pressed. Can the PICAXE do this store > send? Even with external memory? I will also want to show received serial data from the D-Star radio as well as typed in characters from the keyboard on the LCD so both SERIN and SEROUT would need to be stored in memory, I could write SERIN (serial data from the radio) straight to the LCD I suppose but I would like to keep a history of messages in memory which can be stored and scrolled through.
I'm happy if someone here says this isn't possible with a PICAXE and points me towards some other complier that will do it. For those who understand it better it looks like this might do it http://www.piclist.com/techref/microchip/lcdrs232-al.htm but I'm not very experienced with PICs outside of PICAXE so don't know how to use or fuse the .ASM (assembly?) file.
Hope someone can point me in the right direction.
Thanks in advance,
Gavin.
I've been thinking of this project for a while and only got round to building some HW to start testing it at the weekend and need some advice to move it forward. I've seen lots of topics about KEYIN, LCD, SERIN and SEROUT but nothing combining them all.
What I want to do: I'm playing a lot with amateur radio type PICAXE projects and more specifically in the new arena of D-Star. D-Star allows 1200baud serial data to be transferred simultaneously with speech although the radio interface is either 9600 or 38400 baud but don't worry about this just now. One of the common programs for this 1200 baud stream is simple texting or messaging. I would like to have a PIC with a keyboard interface, and SERIN and SEROUT to the D-Star radio and an LCD (4 lines?) to display incoming and typed serial messages. Basically remove the PC.
As some PICs support KEYIN and SEROUT I thought I'd have a go and start testing with an 18x at the weekend and low and behold I've got a program which can read the key presses on the keyboard and send them out using SEROUT and the D-Star radio transmits it (D-Star radios support auto TX when something is seen on the serial interface). I've not done anything with an LCD yet.
The problem is it transmits only one character at a time and I want to buffer anything typed on the keyboard, say upto 160 characters and then send them out in one go when CR (RETURN) is pressed. Can the PICAXE do this store > send? Even with external memory? I will also want to show received serial data from the D-Star radio as well as typed in characters from the keyboard on the LCD so both SERIN and SEROUT would need to be stored in memory, I could write SERIN (serial data from the radio) straight to the LCD I suppose but I would like to keep a history of messages in memory which can be stored and scrolled through.
I'm happy if someone here says this isn't possible with a PICAXE and points me towards some other complier that will do it. For those who understand it better it looks like this might do it http://www.piclist.com/techref/microchip/lcdrs232-al.htm but I'm not very experienced with PICs outside of PICAXE so don't know how to use or fuse the .ASM (assembly?) file.
Hope someone can point me in the right direction.
Thanks in advance,
Gavin.