I was looking for UART code, Bobs source code seen to be exactly what I was looking for. thanks /Fredrik ----- Original Message ----- From: "Olin Lathrop" To: Sent: Thursday, May 01, 2003 7:00 PM Subject: Re: [PIC]: USART at 31250 baud > > I trying to configure my USART to 31250 baud (yep, im gonna talk MIDI). > > Im using a 16f877 @ mMHz and Hi-Techs PIC LITE, assembler is ok to. > > Anyone care to share some code? I googled around but didnt find any > > USART midi code, only bit banging. > > I'm confused whether you're looking for UART code or MIDI code. The two > are independent, or certainly should be with any kind of reasonable > software design. > > For PIC UART example, see my QQQ_UART.ASPIC module at > http://www.embedinc.com/pic, which also uses some UART macros in > STD.INS.ASPIC. The UART setup, including the baud rate generator setup, > is computed automatically from the oscillator frequency, the desired baud > rate, and the processor type. > > > ***************************************************************** > Embed Inc, embedded system specialists in Littleton Massachusetts > (978) 742-9014, http://www.embedinc.com > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu