ATMEGA128

ATMEGA128, SPI, AT45DBXX Data Flash

CoyoteUgly 2018. 9. 1. 18:35

ATMEGA128, SPI, AT45DBXX Data Flash


0. 참고 자료


1. 모듈

2. HW 구성


3. SW 구성

PORTE.0 : UART RXD0
PORTE.1 : UART TXD0

PORTB.0 : SS
PORTB.1 : SCK
PORTB.2 : MOSI
PORTB.3 : MISO


  • at45dbxx.c
    at45dbxx.h
    • int at45db_initialize(void);
    • void at45db_test(void);
  • at45dbxx_spi.prj
  • main.c
  • myMCU.c
    myMCU.h
    • void mcuInit(void);
  • mySPI.c
    mySPI.h
    • void spiRead(unsigned char *pdata, unsigned char len);
    • void spiWrite(unsigned char *pdata, unsigned char len);
    • void spiInit(void);
  • myUART.c
    myUART.h
    • void uartInit(unsigned char line);


4. 소스


5. 결과