Sign in

username:

password:



Not a member?

Search piclist



Search tips

Subscribe to piclist



piclist by Keywords

12F675 | 16F628 | 16F84 | 16f877 | 16F877A | 16F88 | 18F458 | ADC | AVR | Bootloader | CAN | CCS | CRC | EAGLE | EEPROM | ICD | ICSP | IDE | JDM | LED | Macros | Microchip | MPLAB | PCB-CAD | PIC10F | Pic12f675 | PIC16F84 | PIC16F84A | PIC16F877 | PIC18 | PIC18F452 | PicBasic | PICC | PICSTART | PWM | RS-485 | RS232 | SMT | SPI | UART | USART | USB | Wireless | Wisp628 | Xilinx

Ads

Discussion Groups

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.

USART - enricoderfi - Jan 12 21:50:00 2004

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!!





(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )


Re: USART - Eirik Karlsen - Jan 13 14:27:00 2004

Try this:

100    open     "COM1:9600,n,8,1,ds0,cs0,rs0" for random as #comport
110    tx$="this is a com test"
120    print     #comport, tx$

enricoderfi wrote:

 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!!
 
--
*******************************************
VISIT MY HOME PAGE:
<http://home.online.no/~eikarlse/index.htm>
LAST UPDATED: 23/08/2003
*******************************************
Best Regards
Eirik Karlsen
 



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: USART - Fred Reed - Jan 13 19:15:00 2004

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




(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )