Can anyone think of how to detect a TTL 1 microsecond pulse using just a PIC? I'm not measuring the width - just the rising edge. I dont think I can do it using a 16f616. I'm afraid I'll have to use...
THE BOOK of DT's INTERRUPTS is an
organization of interrupt service
routines and other works written by Darrel Taylor, RIP. Interrupt routines are arranged per Darrel's original list. Darrel Taylor's Instant Interrupts are an extension of the work of Tim Box whom in October of 2002 wrote INT_CTRL.pbp Many of the forum members felt this is a long overdue project. THE BOOK of DT's INTERRUPTS will be a valuable resource and a tribute to Darrel Taylor the "Fanatical Contributor". THE BOOK of DT's INTERRUPTS is located at http://dt.picbasic.co.uk/ |
Type: Posts; User: pescador; Keyword(s):
Can anyone think of how to detect a TTL 1 microsecond pulse using just a PIC? I'm not measuring the width - just the rising edge. I dont think I can do it using a 16f616. I'm afraid I'll have to use...
Read the data sheet - love that answer.. First of all I wouldn't even think to look at the analog portion of the documentation since I'm not using analog inputs. The fact is the pins are defined as...
New to PIC basic - programming a 16F15324 - a substitute of the 16F616. I'm setting up pin 2 of the IC to be a simple 0 or 1 detector w 5V.
It will not detect a 1 or a zero unless I make the pin...
Mixed results on that help. it doesn't remember every time I cycle power - 1 out 10 times it fails to remember
My ADCON0 register looks like this 10010011. Now I have to figure out why it worked.
starting from left
1 = Right justified, needed for 10 bit
0 = reference is VDD
0010 = using AN2
1 = not...
I will try -thankyou...
Your answer is appreciated, you took awhile to answer and you're right - read. Most people would just reply with - hey idiot - read the docs for petes sake.
I've read the docs about 25 times, but...
I'm using Analog port 2 on 16F616 - 4Mhz.. VDD as reference. Any help would be great. I didn't have to set the ADCON registers for 8 bit. Why is 10 bit different? Was I lucky?
I dont know what I'm doing.. I dont know what to set ADCON1 to.
Its working - but crazy numbers now - 32k instead of 1024 uggg...
I've been reading other posts - so I tried this to see if light would turn green - fail
DEFINE ADC_BITS 10
DEFINE ADC_CLOCK 3
DEFINE ADC_SAMPLEUS 50
ADCON1=%10000010
OUTPUT PORTA.1 ...
Note: - I'm not doing anything as far as CCP1CON, CM1CON0,CM2CON0, CM2CON1, ADCON1.
Yes I'm new...
I'm using a 16F616 analog input with a ADCIN routine. My resolution is 5V / 256 = about .19 mv. I'm using a voltage divider for the input with .1% tolerance resistors. Is there a better way to...
I have a circuit using a 12F683. It uses a PWM output that controls LED brightness. When the user turns off the circuit and turns it back on - it needs to remain at the same brightness as when was...
I'm using a 16f616 - but can be changed. I need to do 2 things at same time. I need a timer that has 2 stages - 1 minute on, 5 minutes off (controlling a relay). At the same time I need to monitor an...
update - you were right - I had to remove the cap (base to ground on npn) altogether for the PWM to even work. I was using a .1uf - seems it was filtering off the signal. I didn't look too much into...
Schematic...
Moral of the story is - things sometimes appear more complicated than they really are. Simply 2 or 3 lines of code solved this problem when to me for awhile it seemed like I had to address memory...
pic of board - 2 layer board with a 5v reg connected to a 12f683 - fet driving output pin with ground activating the changing of PWM duty cycle. I'm doing a bit of conditioning of the pwm out of pin...
thanks Dwight - do the commands above the main only happen once? - I thought once it hits main and we loop on main that it doesn't occur again - we read then the value only once.
Obvious answer...
1/2 my lab in basement - pick and place in foreground.. work area and test on right.
Jerson - I notice you have code on top of main: - the read and if - is that meant to be in the main? It actually compiled - and I have no endif for the if Duty > 128 statement... I dont understand...
I was in a rush this morning - I'm getting it.. I admit I panicked.. I do read - I work 80- hours a week - 40 hours at a real good job and 40 my own business... I try to save time sometimes...
ok I'm a bit slow - I'm old... the 683 has an EEPROM - I'll read after my day job how to do it - thanks guys...
any advice on the code I already have would be nice...
thats the spirit.... thanks for the ps..