A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.
|
Does anyone out there have a simple program to exercise the USART in 8-bit synchronous mode. I'm trying to send data to a MIC5821 serial input latched driver. I have no need to ever use the receive mode. This should be simple, but I'm doing something wrong, and can't get it to go. All I need is a minimal bit of code (preferably in Basic) to get me off of center. Thanks in advance!! |
|
|
|
Try this:
100 open "COM1:9600,n,8,1,ds0,cs0,rs0"
for random as #comport
enricoderfi wrote: Does anyone out there have a simple program to exercise the USART in-- ******************************************* VISIT MY HOME PAGE: <http://home.online.no/~eikarlse/index.htm> LAST UPDATED: 23/08/2003 ******************************************* Best Regards Eirik Karlsen |
|
Thanks for getting back to me, but I realize now that I
didn't do a good job of explaining my problem.
I can't get the PIC to transmit in Master Synchronous
mode, which is what I need for serially loading a latched peripheral
driver.
I have set all the registers etc. that the manual
says have to be set, and when I load the TXREG and set TXEN, it should immediately load
TSR and start sending. It doesn't. Obviously, I don't have something set
right. What would really help me is a minimal program for the PIC that I could
compile and load to the simulator, then fool around with .
I appreciate you feedback, and if you have anything that
might get me off of top dead center, I would appreciate it!
Thanks
EnricoDerfi
|