I/O Pin Define
Circuit Diagram
AT24C64 Device Address - 0xA6
SOP:0xFE
LEN:DATA LENGTH
FCS:CMD xor LEN xor DATA
Error Handler
ERR_MODE_FAIL return 0x00
ERR_MODE_SUCCESS return 0x01
ERR_MODE_CHECKSUM_ERR return 0xFF
LED CMD - 0x00B0
LED All ON : FE00B00100B1
LED All OFF : FE00B00111A0
BLED ON(RLED OFF) : FE00B00101B0
RLED ON(BLED OFF) : FE00B00110A1
IIC Byte Write CMD - 0x00B1
IIC Byte Write : FE00B10300077FCA
Write data to AT24C64,EEPROM Address = 0x0007,Write data = 0x7F
IIC Byte Read CMD - 0x00B2
IIC Byte Read : FE00B2020007B7
Read data from AT24C64,EEPROM Address = 0x0007
IIC Page Write / Multi Write CMD - 0x00B3
IIC Page Write :
FE00B3230020208888888899999999AAAAAAAABBBBBBBBCCCCCCCCDDDDDDDDEEEEEEEEFFFFFFFF90
Write data to AT24C64,EEPROM Address = 0x0020,Data Length = 32 byte,Write data = 8888888899999999AAAAAAAABBBBBBBBCCCCCCCCDDDDDDDDEEEEEEEEFFFFFFFF
IIC Page Read / Multi Read CMD - 0x00B4
IIC Page Read : FE00B403002020B7
PWM-1(Timer1-CH3) CMD - 0x00B5
MAX : FE00B50100B4
MIN : FE00B50101B5
HALF : FE00B50110A4
OFF : FE00B50111A5
MAX → MIN → HALF → OFF
PWM-2(Timer3-CH1) CMD - 0x00B6
MAX : FE00B60100B7
MIN : FE00B60101B6
HALF : FE00B60110A7
OFF : FE00B60111A6
MAX → MIN → HALF → OFF
KEY-1、KEY-3:Adjust PWM-2
AT93C46 SPI Byte Write CMD - 0x00B9
AT93C46 SPI Byte Write : FE00B9020011AA
Write data to AT93C46,Write Address = 0x00,Write data = 0x11
AT93C46 SPI Byte Read CMD - 0x00BA
AT93C46 SPI Byte Read : FE00BA0100BB
Read data from AT93C46 ,Read Address = 0x00
沒有留言:
張貼留言