bs2 serial clock out
qazxsw21000
Posts: 13
I am trying to get my BS2 homework board to read and write to an EEPROM chip. FYI: the chip is part number XLS93C46P. Problem is, it has a serial clock in pin. Does the BS2 have a clock output option of some sort?
Comments
With SHIFTOUT one pin is declared for the data out and one for clock.
If the device can't work with the SHIFTOUT regime then you'll have to bit-bang it.
The instruction set is listed on page 3 (2-77)
It's not a clinic, it's a datasheet.
XL93LC46.pdf
Maybe you should look for an I2C eeprom, there are PBasic examples to follow for those.
I'm attaching a short program I wrote some years ago to demonstrate using serial (SPI) FRAM from Ramtron. It's not a drop in for your eeprom, yours is a 16 bit device, not 8, and the op codes are different but maybe it will get you started.