Skip to content

TWI C library for AVR microcontrollers

License

Notifications You must be signed in to change notification settings

efthymios-ks/AVR-TWI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

AVR TWI Library (Flag Polling)


Description:
A library to interface the TWI hardware of AVR microcontrollers using the flag polling method. The TWI protocol is also widely known as I2C.

  • Functions include:
    • Setting up.
    • Sending START signal.
    • Sending STOP signal.
    • Checking TWI status.
    • Transmitting single byte.
    • Receiving single byte (+ returning ACK/NACK).
    • Transmitting packet of bytes to given slave (SLA) and subaddress.
    • Receiving packet of bytes from given slave (SLA) and subaddress.
    • Setting up slave address (SLA).
      Read the bottom of "TWI.h" to see all functions available.
  • All codes for TWI status are included and are used in error checking while tranceiving data.
  • My custom I/O macros are required and are included.

Memory usage:

  • Program: 0 bytes
  • Data: 0 bytes

Compiler:
AVR-GCC

Optimization Level:
Optimize (-O1)


About

TWI C library for AVR microcontrollers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages