Munib
Advanced Member level 4
how to set pll in c18 compiler
im interfacing my PIC 18f452 with my computer with windows XP as OS.
the problem is that i can not send my data correctly to the computer via COM1,
the data which uis received by the hyperterminal is not correct, i wrote a program IN MY COMPUTER WHICH GENRATED AN INTEGER , send it to my mcu via the serial port , the mcu got the data and then send the same data back t the PC,
now when my pc send "1" to mcu, it received 1 but it returned 129 to pc,
when send 2, the mcu returned 130,
and i concluded that the mcu returned the value with an addition of 128, but i was wrong this factor of 128 was not cnstant and it kept on changing
so far i was using C 18 compiler, when i used my mcu with pic basic pro, this problem didnt occur ,
is there ne thing wrong with C 18 or if iam doing ne thing wrong
im interfacing my PIC 18f452 with my computer with windows XP as OS.
the problem is that i can not send my data correctly to the computer via COM1,
the data which uis received by the hyperterminal is not correct, i wrote a program IN MY COMPUTER WHICH GENRATED AN INTEGER , send it to my mcu via the serial port , the mcu got the data and then send the same data back t the PC,
now when my pc send "1" to mcu, it received 1 but it returned 129 to pc,
when send 2, the mcu returned 130,
and i concluded that the mcu returned the value with an addition of 128, but i was wrong this factor of 128 was not cnstant and it kept on changing
so far i was using C 18 compiler, when i used my mcu with pic basic pro, this problem didnt occur ,
is there ne thing wrong with C 18 or if iam doing ne thing wrong