Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Hi
Try with this code to understand what you want. it is counting from 0 to 999 and reset to 0
#include <htc.h>
#define _XTAL_FREQ 4000000 // 4 MHz clock
__CONFIG(0X3F39);
long segment [10]= {0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};
char digit[6] =...
Dear Sir/Madam
Can I have the some fun Videos and pictures related to Microcontroller, to show students when they become sleepy mode in the class after lunch
Your reply is highly appreciated
As Sajjadkhan explain use A4 sticker paper and remove sticker from the paper and check this paper glossy or mat. if surface is mat you can't get good result. use glossy surface paper ( you can't see this until you remove sticker from the paper) then insert this paper to your laser printer and...
It is so difficult to say both pins are internally connected or not. But you can't use either pin to supply power for another cct. And you must connect both pin to ground
you will see small resistance between pins when you check using ohm meter
I add another step
BSF TRISC,2 ;Configure pin as input
BCF T2CON,TMR2ON ;turn off timer2
Set up Period and Duty Cycle
MOVLW b’01111111’ ;
MOvWF PR2 ;Load a Period Value
MOVLW b’00011111’
MOVWF CCPR1L ;Load Duty Cycle Value
I think now I am in correct track
Am I...
Dear fuyejun,
I think you will help this
#include <p16f877a.inc>
__CONFIG _WDT_OFF & _HS_OSC
First connect your 4MHz OSC to PIC using oscillator XT and apply proper delay that you can see blink led. Then change your oscillator 20MHz changing __CONFIG bit I shown above using same delay...
Dear/PA3040
What do you think about this reply?
Your MCU is 16F877a, which is 8k Program memory. That means 8192Bytes
As well as 8192 address locations in program memory. The program Counter should be capable to access this all
address locations from 00 to end. Therefore 13bit wide is need to...
Dear WP
That is grate help
I got your point and I simulated using MPLAB SIM and I added watch and now I trapped and unclear how add Stimulus while it is simulating please kindly advice me
Thanks in advance
Dear WP
That is grate help
I got your point and I simulated using MPLAB SIM and I added watch and now I trapped and unclear how add Stimulus while it is simulating please kindly advice me
Thanks in advance
Dear wp,
Thank you very much details reply
I know how capture modual is working
my concen is, when I load to it PIC Simulator IDE
it does not work well, I mean after pullse detected by RC2,
CCP1IF must be set, and contain of TMR1L and TMR1H should be captured by CCPR1H and CCPR1L
let me know...
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.