An explanation of bit masks can be found here. In the main loop it reads that data back out, one byte at a time and prints that byte out the built in serial port.
Also, isn't it SPI. Mar 16, 2013 3. This means you have to pay special attention to the datasheet when writing your interface code. You can specify more arguments, namely what to do with SS pin, but this doesn't seem to concern you.
The 93C46 is a memory element. Typically there are three lines common to all the devices,.
Pre-processor directives are processed before the actual compilation begins. Control registers code control settings for various microcontroller functionalities. Next we send our 128 bytes of data from our buffer array, one byte after another without pause.
The first step is setting up our pre-processor directives. Post as a guest Name. Forgot your password? It's memory is organized as 512 pages of 128 bytes each. Mar 23, 2013 13. If you have to use this you need to use the resistors as in the AN, you need to write a bit bang SPI taking care of timing requirements!
Look up SPI for those details. I am looking for a link or a simple application to be used in reading the data of a eeprom type 93C46 circuit used for counting the number and duration of activations of a 12V DC power source.
This way if our data comes out looking funny later on we can tell it isn't just the serial port acting up:. From the datasheet I understand that in order to write the integers 1 and 2 to the first address I need to send the following bits:. No, create an account now.
Quote of the day. It was allowed for the content to be read but within a special application. Mar 16, 2013 1. If you need to send data that isn't 8-bytes, it would be exceedingly convenient if the data size in bits was a multiple of 8.
This is the code: Where is 25 coming from? I read the example you linked, but I came across the same problem, that I'm not sure how to chop up the bits and send them. Dec 4, 2009 310 46.