Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
The CPU will execute two tasks in parallel. The first task will be a normal program execution loop which continuously tests an active-low switch connected to RB3. When the switch is pressed, an active-high LED connected to RB4 will turn on for 1 second (using software delay). Any switch presses...
Count the number of pulses fed into the T0CKI pin, display the count on PORTB, and set the
RA3 bit when the count reaches the decimal value of 100. The count will be continuously displayed on PORTB after setting the RA3 bit.
using ASSEMBLY language
example:
movlw counter
movwf PORTB
.......
I need help generating a square wave of 500 Hz(+-1% timing accuracy) square wave with a 25% duty cycle at RB3 when the FOSC = 4 MHz
I am completely loss on how to do it
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.