Earlier this year I spent hours unsuccesfully trying to operate a serial lcd with no success at all & assuming it was a dud lcd I gave up.
I now need to cotrol a quadravox sound module with serial data and once again I simply cannoy get the darned thing working. The module requires a number between 0 and 239 to identify an mp3 track. I have recorded two tracks (00 and 01) and the software provided by quadrovox for testin shows that they are there and play OK. I have now connected a PIC 1628a running at 4 mhz (crystal)
checked that it is working by writing a prog to blink an led on PortB.3 So far so good. I have now connected PortB.0 to the serial port of the module (pin 2 data receive and pin 5 ground) and having been told to muse driven inverted output have written the following program which compiles Ok but does absolutely zilch. What the devil am I doing wrong !!! If I go on like tyhis much longer matron's not going to let me out. Any helpful suggestions would be greatly appreciated
[
@device PIC16F628A
include "modedefs.bas"
DEFINE OSC 4
x VAR BYTE
loop:
pause 2000
for x= 0 to1
SEROUT Portb.3,n9600,[x]
pause 4000
next x
goto loop
end
]
Bookmarks