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.
Thanks for ur attention. I've changed my functions but again there is no sign of improvment.Could u please give me sources for If Function ? I think my If function doesn't works .
OR maybe I should have any kind of delay?
This is my latest program : #include "lpc17xx.h"
#include "type.h"...
Dear Alexan
Yep, It's Got vref Bottom. I plug it on. I thought maybe i miss any connection.you think why my code doesn't recognize the difference between voltages?am i making mistake in If function?
And my code is now like this : L = ADCRead(0);
L = (L >> 4) & 0x00000FFF;
if ( volt < 1100 )
break;
}
i put high in ADC(0) but It again jump to blinking loop after resting ....
Thanks for your great attention.exactly you are right, i will do that.Also, Do u see other problems in my code?please inform me.:)
- - - Updated - - -
I did the what you said but again chip dosnt responde to my if function,I think maybe i have problem in VRefp & verfN.I dont have those sign on...
Thanks for your help dear farhada. I've tried to Learn the process of ADC programming & right now i've faced with confusing problem.I've written below program: i want in this program system firstly show a simple blink is beginning then go & check first ADC(0) of chip if it's high keep in loop...
initially,I am so thankful about your great attention.Yep,You are right, I've connect it exactly like that. actually my biggest problem relates to determining the structure of codes in Keil for example in below code i don't know which function defines ADC & which check them, Could you please...
To be honest, it gives errors on many parts for example it says that most of defines for example LPC_ADC->ADDR0 is undefined.Could u please give me a sample ? For example i looked to keil example which is really complicated & i didn't reach any conclusion then i search net and wrote down this...
Guys i'm new in here and i need help urgently please have look this link i've explain every thing in this topic : https://www.edaboard.com/threads/263290/#post1126867
To be honest, i need it for line follower robot... for example voltage between 0 to 1.6 it activate port0.0 as high for upper than that make it low. I just want to have this sample for expanding my algorithm as line follower robot. Can u help me with that?
Also i've written a program which has...
Hey guys
I am using lpc1768 as ADC input for cheking input voltage by keil program but i've faced with problem.actually i'm new in cortex-m3 too.This is my code below.could u please tell my problems in program ?am i need header file becuase of using GPIO?
#include "lpc17xx.h"
#include "type.h"...
Dear friends
I've got one LPC1768 & CNY70 sensor. Could anyone give me a sample example for controlling ADC for CNY70 please?
Also I’ve checked keili examples sample but they were so complicated, I didn’t get which Defines are needed for this simple program.
I would be thankful if you could help...
Thanks for your noteworthy advice. One more thing, i want to put .1uf capacitor between v+, GND for each IR sensor for preventing noise do u think it is worth it?
- - - Updated - - -
Aw... i forgot to ask. I’ve used 220ohm for IR LED but I don't know how choose between 10-22k resistor for...
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.