hello sir i have a problem, with the stm8s208. i use the i2c bus.
hello sir
i use the i2c bus on a stm8s208.
there is just connected 2 pcf8574.
the crystal i used is 8Mhz, and a i2c clock divider of 4
one pcf8574 is connected to dipswitched , adress is 42
the second pcf8574 is connected to led's, adress is 40
individualy its working. both.
so i can read, the switches, and i can send information so the leds are lighting up.
even i read first the switches and then i go to the led sending routine ,and put then a 'break" in the stv development its still ok.
but, now, if i jump back to read the switches, , i can't read my switches, its stops in the "pcf8574 start routine" of the led's.
another information, the same board, the same adressing, id working with the arduino i2c bus.
so,my board is "functionaly" ok.
send the file in addembler here with
can you tell me or give me some clues,what i did wrong in the programming
many thanks
marc debruyne
