2005-10-18 06:33 AM
2005-10-18 05:46 AM
Hi,
I have an STPC elite and I want to use the DDC lines as I2c. I tried: Outb (16#22# + 16#97#, 16#01#); but the lines are always high. I use the PC without operating system and without MMU. That is, I want to now the address I have to put in the outb function to access the DDC byte so I can use the corresponding bits to emulate by software the I2C protocol. Thanks a lot Daniel2005-10-18 06:33 AM
autoanswer again ;)
From the manual: ''The STPC implements a number of registers in IO address space. This is visible in the registers with access = 0022h/0023h. These regsters use the index and data programming system where the index to which the data is to be written to is programmed in register 0022h and the data is written to register 0023h.'' I used: base_index : io_port := 16#22#; base_data : io_port := 16#23#; Outb_P (base_index, 16#97#); Outb_P (base_data, 16#01#); pause; Outb_P (base_index, 16#97#); Byte := Inb_P (base_data); Put(Integer(Byte),base=>2); and it works!