Alvaro Deibe Diaz wrote: > How can I do to make the line: > > SPBRG=FOSC/BAUD/16-1; > > assign the correct value to SPBRG in Hi-Tech Pic C Compiler? > > Actually it truncates the value of FOSC/BAUD/16, and I want the > rounded value. Alvaro: SPBRG == (FOSC/BAUD/8 + 1)/2 - 1; -Andy === Andrew Warren --- aiw@cypress.com === IPD Systems Engineering, CYSD === Cypress Semiconductor Corporation === === Opinions expressed above do not === necessarily represent those of === Cypress Semiconductor Corporation -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body