UNIIN pin, device, command, (var, var...)
UNIIN pin, device, command, address, address, (var, var...)
Pin - is a variable/constant which specifies the i/o pin to use.
Device - is the UNI/O type, %10100000 for EEPROM devices
Command - is the read type command, either
||Read from specified address
||Read from current address
||Read status byte
Address - is the optional 2 byte address, only used by UNI_READ.
Variable - receives the data.
Read data from the UNI/O device into the PICAXE variable.
The 'uniin' command allows data to be read in from an external UNI/O part such as the 11LCxxx series EEPROM chips. UNI/O parts only require one i/o pin to connect to the PICAXE microcontroller. A 4k7 pullup resistor is not required by the UNI/O specification, but is highly recommended.
Note that when first powered up (after a power-on or brown out reset) the UNI/O device is in a special low-power standby mode. It is necessary to 'wake' the device, via a rising edge pulse (using the pulsout command), before the uniin / uniout commands will function correctly.
This command cannot be used on the following pins due to silicon restrictions: