for 16mhz
#CONFIG
CONFIG WDTEN = ON
CONFIG PLLDIV = 2
CONFIG STVREN = ON
CONFIG XINST = OFF
CONFIG DEBUG = OFF
CONFIG CPUDIV = OSC3_PLL3
CONFIG CP0 = OFF
Type: Posts; User: richard; Keyword(s):
for 16mhz
#CONFIG
CONFIG WDTEN = ON
CONFIG PLLDIV = 2
CONFIG STVREN = ON
CONFIG XINST = OFF
CONFIG DEBUG = OFF
CONFIG CPUDIV = OSC3_PLL3
CONFIG CP0 = OFF
to send 10
in little_endian format
Hserout [10,0]
or big_endian format
Hserout [0,10]
not sure how arduinos go about it they could be big or little endian
if your values...
wheel ,x,y and button are all ints ie 16 bit signed values ie 8 bytes sent
are all bytes ie 8 bit unsigned values ie 4 bytes sent
post your code including the fuse config
@ 4mHz The baudrate error is 8.5 % .Quite likely to cause trouble , the internal osc is quite capable of 8 12 16 24 or 48 MHz operation any one of which would be better than 4 .
DEFINE...