Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. SPI_BASE = 0x80
  2. SPICR0 = SPI_BASE + 0x08
  3. SPICR1 = SPI_BASE + 0x09
  4. SPICR2 = SPI_BASE + 0x0a
  5. SPIBR = SPI_BASE + 0x0b
  6. SPISR = SPI_BASE + 0x0c
  7. SPITXDR = SPI_BASE + 0x0d
  8. SPIRXDR = SPI_BASE + 0x0e
  9. SPICSR = SPI_BASE + 0x0f
  10.  
  11. init:
  12. SPICR0 = 0xff
  13. SPICR1 = 0x80
  14. SPICR2 = 0xc0
  15. SPIBR = 0x03
  16. SPICSR = 0x0f
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement