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.
but still lot of errors
//---------------------------------------------
// FREQUENCY COUNTER
// www.circuit-projects.com
// Y.Erol
//---------------------------------------------
//#include <pic.h>
//#include <delay.c>
///__CONFIG(WDTDIS&PWRTEN&LVPDIS&XT);
unsigned char...
these are the errors
diagnostics: 0 126 All files Preprocessed in 16 ms
diagnostics: 0 122 Compilation Started MyProject.c
error: 21 318 Assigning to non-lvalue 'GIE' MyProject.c
error: 23 324 Undeclared identifier 'control' in expression MyProject.c
error: 25 318 Assigning to non-lvalue...
code of a FREQUENCY COUNTER .This is from
**broken link removed**
The pic used is 16f 628a
//---------------------------------------------
// FREQUENCY COUNTER
//---------------------------------------------
#include <pic.h>
#include <delay.c>
__CONFIG(WDTDIS&PWRTEN&LVPDIS&XT)...
Thanks for your help. the hardware is working fine ,the problem was with the pic.
how to store the last values of the led's to internal ram??
i don't know how to use internal ram can you please give one example to do this
- - - Updated - - -
changed as while(SW_PORT != 0xF7); but not working
the switch read values in your code are d6,d5,d3,c7,97 ,but in this case ra5 (reset pin) is treated as '0' at the same time it is connected with vcc via 10k
if((SW_PORT & SW_TEST_VAL) == 0xD6) {
Delay_ms(80)...
pic and the buttons are in working condition. When i use the code in post #1 all are working except pwm
can you please explain these lines
while((SW_PORT & 0xF7) != 0xF7);
#define SW_TEST_VAL 0xD7
The circuit is attached . In this ckt the switches are working with the hex code in post #1,in real hardware .pwm is not working .
but when i tried with the code& ckt in post#5 only the pwm led is high and the switches are not working when tested in hardwire
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.