Skip to content

Latest commit

 

History

History
51 lines (43 loc) · 2.17 KB

README.md

File metadata and controls

51 lines (43 loc) · 2.17 KB

PIC 16F877A

  • Control:
    • LED
    • BUZZER
    • REPLAY
    • MOTOR
    • LCD
  • Create game One-Two-Three (PvC)

IMAGE DEMO

VIDEO DEMO

IMAGE ALT TEXT HERE

VIDEO SCHEMATIC

IMAGE ALT TEXT HERE

CODE DEMO

#ifndef __TIMER_H
	#define __TIMER_H
	// dinh nghia bien
	// source la xung noi hay xung ngoai (INTERNAL hay EXTERNAL)
	#define INTERNAL 0
	#define EXTERNAL 1
	// prescaler la thong so ti le
	#define DIV2 1
	#define DIV4 2
	#define DIV8 3
	#define DIV16 4
	#define DIV32 5
	#define DIV64 6
	#define DIV128 7
	#define DIV256 8
	// khai bao cac ham chuong trinh con
	void _InitTimer0(void); // ham cai dat TIMER0
	void _SETUP_TIMER_0(char source_signal,char prescaler); // ham cai dat gia tri ban dau cho TIMER0
	void _SET_TIMER0(unsigned char value);
#endif