Hi.
I have a problem to make communicating two chips. I have to send temperatures, but I stuck on first step just testing to send some byte. I'm trying to send one byte from chip 08M2 to chip 28X2. I have connected some capacitors (u1K63) next to both chips between positive and ground and grounded both communication lines (RX and TX) thorough resistor 4K7 ohm. Programs of both chips atached. Unfortunately debuger of 28X2 shows various accidental values, but not what I'd expect. Any suggestions?
Thanks
I have a problem to make communicating two chips. I have to send temperatures, but I stuck on first step just testing to send some byte. I'm trying to send one byte from chip 08M2 to chip 28X2. I have connected some capacitors (u1K63) next to both chips between positive and ground and grounded both communication lines (RX and TX) thorough resistor 4K7 ohm. Programs of both chips atached. Unfortunately debuger of 28X2 shows various accidental values, but not what I'd expect. Any suggestions?
Thanks
Code:
#Picaxe 08M2
setfreq M16
SYMBOL TX = C.0 'serial transmit pin connected to 28X2 pin C.0
SYMBOL index = b0
'-----------------------------------------------------------------------------------------------
main:
pause 3000
inc index
debug
serout TX, N2400_16, (index)
goto main
'-----------------------------------------------------------------------------------------------
Code:
#picaxe 28x2
Setfreq M16 'Run at overclocked speed of 16 Mhz
Symbol RX = C.0 'serial receive pin connected to 08M2 pin C.0
Symbol TX = A.3 'serial transmit pin connected to 08M2 pin C.1
symbol index = b0
'----------------------------------------------------------------------------------------------------
main:
serin [2000], RX, N2400_16, index
debug
goto main
'----------------------------------------------------------------------------------------------------