PDA

View Full Version : Problem with communications & registers and LCD



mpavlica
- 27th December 2004, 09:38
Hello!
Merry Christmass and Happy New Year!
I am writting some application using 16F876 (maybe in future 18F252 equ)
and now i am in problem.
PIC is cimmunicating with FX828 and need to be standalone tone
encoder/decoder with keypad and LCD with possibility to RS232 to PC
When i turn on for first time device, it need to read eeprom, and if it
is initial starting, then it write defaults into EEPROM. Thats OK.
But, main problem is that, how i can show on diplay, depending on which
bit is set in register, to show what is mean?
For example, LCD is 2x16 and it need to show:
"CTCSS Dec - 88.5Hz"
"xxxxxxxxxxxxxxxxxxx"
xxxxx - can be status of some registers optinally, like attenuation of
internal amplifier etc - that data i also have in registers in FX828
Naturally, i can read FX828, but, what to do then with them - point is
that CTCSS can be and DCS and SelCall - depends on value of register,
Dec can be Enc also, 88.5Hz can be some other frequency, which i get in
to two bytes, and then i need to find their match into table and to show
them on LCD
Does anyone can help me with this?
Thanks in advance!