TOP Contributors

  1. MIKROE (2762 codes)
  2. Alcides Ramos (374 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (91 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (139266 times)
  2. FAT32 Library (71754 times)
  3. Network Ethernet Library (57128 times)
  4. USB Device Library (47432 times)
  5. Network WiFi Library (43092 times)
  6. FT800 Library (42408 times)
  7. GSM click (29835 times)
  8. mikroSDK (28101 times)
  9. PID Library (26886 times)
  10. microSD click (26198 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Library

PCF8574 - Port expander

Rating:

0

Author: Andrey Krivoshein

Last Updated: 2020-12-11

Package Version: 1.0.0.0

Category: Communication

Downloaded: 162 times

Not followed.

License: GNU General Public License (GPL)  

PCF8574 - Port expander library for the AVR MCU. Written on the MikroPascal for AVR. The standard software driver I2C is used for operation. Tested in tandem with the ATTiny45 microcontroller. Can be used in conjunction with any AVR.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "PCF8574 - Port expander" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "PCF8574 - Port expander" changes.

Do you want to report abuse regarding "PCF8574 - Port expander".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Library Blog

//  Example of use:
//  In the main unit, put code here
//  ...

uses  PCF8574 ;      
//  ...

var 
    // Software I2C connections (examle), see  more details in the Soft I2C library help
    Soft_I2C_Scl_Output   : sbit at PORTB1_bit;
    Soft_I2C_Sda_Output   : sbit at PORTB0_bit;
    Soft_I2C_Scl_Input    : sbit at PINB1_bit;
    Soft_I2C_Sda_Input    : sbit at PINB0_bit;
    Soft_I2C_Scl_Direction: sbit at DDB1_bit;
    Soft_I2C_Sda_Direction: sbit at DDB0_bit;

 begin
//    ...

    PCF8574_Init(0x38, True); // Set address without R/W bit, Inverted flag set is TRUE
//    ...

    while True do
    begin
//    ...
    
        PCF8574_SwON(B1); // Setting pin P1 to low  level (if set flag Inverted)
    end

end.

ALSO FROM THIS AUTHOR

IR NEC Decoder Library

5

The library of the decoder for work with IR control panels according to the NEC protocol. Tested at ATtiny2313, IR - TSOP xx36. We connect the IR receiver to a pin of INT0 and expose frequency of the MK on 8 MHz. The IR NEC lib uses TIMER0 counters.

[Learn More]