void main()
{
unsigned int analog;
TRISA=0xFF;
TRISC=0;
T2CON=0x02;
CCP1CON=0x0C;
PR2=0xFF;
T2CON.TMR2ON=1;
while(1)
{
analog=Adc_Read(3);
analog=analog/4;
CCPR1L=analog;
}
}
วันจันทร์ที่ 24 ธันวาคม พ.ศ. 2561
สมัครสมาชิก:
ส่งความคิดเห็น (Atom)
Internet of Things (IoT)
Internet of Things หรือ IoT Internet of Things (IoT) คือ การที่อุปกรณ์อิเล็กทรอนิกส์ต่างๆ สามารถเชื่อมโยงหรือส่งข้อมูลถึงกันได้ด้วยอิ...
-
Calculator with Pic 16f877 microcontroller is a comprehensive project. Comprehensive in the w...
-
Internet of Things หรือ IoT Internet of Things (IoT) คือ การที่อุปกรณ์อิเล็กทรอนิกส์ต่างๆ สามารถเชื่อมโยงหรือส่งข้อมูลถึงกันได้ด้วยอิ...
-
#include <LiquidCrystal_I2C.h> LiquidCrystal_I2C lcd(0x27,16,2); int PIRpin = 8; void setup() { lcd.begin(); pinMode(PIRpin,...

ไม่มีความคิดเห็น:
แสดงความคิดเห็น