![]() Cấu trúc lập trình, code ví dụ PIC16F PIC Microcontrollers Programming in C Author: Milan Verle Compilation with Meisam Fanoody ANSEL = ANSELH = 0 // All I/O pins are configured as digital PORTB = 0 // All PORTB pins are cleared TRISB = 0b00000010 // All PORTB pins except PORTB.1 are configured as outputs RBPU = 0 // Pull-up resistors are enabled WPUB1 = 1 // Pull-up resistor is connected to the PORTB.1 pin IOCB1 = 1 // The PORTB.1 pin may cause an interrupt on logic state change RBIE = GIE = 1 // Interrupt is enabled Meisam Fanoody Table of Contents ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |