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 code seems to work using the else if statements but the outputs stop working after it changes from output 0110 and forward any suggestions?
main ()
{
ANSEL=0b000000;
ADCON0bits.ADON=0;
TRISA=0b00010000;
TRISC=0b00000000;
T1CON=0b00000000;
while(1){...
so using a simple if else statement on the code Pommie wrote i can use it to at least do some test runs and have something to present
(the code insert wouldn't work)
main ()
{
ANSEL=0b000000;
ADCON0bits.ADON=0;
TRISA=0b00010000;
TRISC=0b00000000;
T1CON=0b00000000...
the length of each pulse is in micro seconds and the waves wont stop coming in and the length of that waves will change manually by another micro controller the block diagram of the project is posted below,
so i wrote down a code based on a tutorial and changed all f the parameters to work with my problem "reverse engineering " but it doesn't seem to do anything
#include <xc.h>
#pragma config FOSC = INTRCIO// Oscillator Selection bits (INTOSC oscillator)
#pragma config WDTE = OFF // Watchdog...
i have to detect different times of a square wave and out put them using an LED (simple if else statement) for example if the input pulse is 200us i should output 0000 or 300us output 0001
only thing i dont know, is how to implement is the detection of the pulse by using the timer1 or timer0 or...
Now that I gained a bit more experience writing C language a task of mine is to write a program to detect different pulses and represent them with a LEDS. anyone have any suggestions on how to do this. I have done some research and i came to the conclusion of using Timer0 operation to compare...
thanks now my program is working but when i try to upload to the micro controller i get the following errors
{
Target device was not found (could not detect target voltage VDD). You must connect to a target device to use PICkit 3.
Target has invalid calibration data (0x00). }
ive connected VDD...
I've been working on a PWM code on a PIC16f676 using XC8,mplab so far my code doesn't have any problems but doest upload to the microchip (first time ever using this chip) and the code seems logical it will generate a pulse width any suggestion why it wont upload maybe the connection of my...
my instructions are posted on the figure below. figured that by using a while loop and for loops would create the PWMs that i need. any suggestions ( first time ever programming this type of chip)
#include <xc.h>
#pragma config FOSC = INTOSC
#pragma config WDTE = OFF
#pragma config MCLRE = ON...
im new to using this language and im trying to figure out how to set up the micro controller to take 4 inputs and out put different pulse width modulation using C language if anyone can help thanks
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.