p4can_lusuh WROTE:HI..thanx for reply.
but still have problem guys.. i copy down the sample code and compile it . but what i found is that the hex file created is no same as the download from the folder hex file . and thus is no working . but if i load the sample hex file to PIC . it work. so what is the problem ? with the sample code SC16A+16F, im using MPLAB IDE v8.30 with HITECH C compiler. is it problem cm from MPLAB version for sk40c?
Sorry for the trouble caused. The setting of UART baudrate in the C code is for 10Mhz cystal (it has been commented in the code) while the hex code is for 20Mhz crystal. What you have to do is just replace the SPBRG value (0x40 / 64 in decimal) with 129. Anyway, i have updated the code with 20Mhz setting at the product page. You may download it again.
Return to PIC Development Tool
Users browsing this forum: No registered users and 18 guests