> 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