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.
I still do not know how to prohramm in hi tech C coder & decoder
from Transmitter to reciever ... example when i press switch on mycrocontroler input RAO,output RA1 sending logic'1' constantly until i press switch again
reciever is on another microcontroler input RA0,flashes LED on output RA1...
OK,works just fine;
__CONFIG(FOSC_HS & WDTE_OFF & PWRTE_OFF & CP_OFF );--- can you explayn me this line ??
& BOREN_OFF & LVP_OFF & CPD_OFF & WRT_OFF --- I do not have theese
nice servo code it will help me a lot,but
this code:
while( 1 ) // beskonacna petlja pocetak
{
for(i=0;i<50;i++)
{
RB4 = 1; // Upali puls na LED
for(pulse = 0; pulse < duty; pulse++); // Puls postoji dok je manji od duty-a
RB4 = 0; // Gasi puls na LED
for(pulse = 0...
I have only one more question about the program above
This programm does LED flashnih from 0% to 100% in about 1 second,what should I change to LED flashing from 0% to 100% ten times longer? please help =)
i knoe the idea,but could anybody write some programm in hi tech c,wich is simple and which work;from beggining to the end,i thik only this will solve my problem;pls?
---------- Post added at 14:38 ---------- Previous post was at 13:49 ----------
I FOUND IT: :):):)
// Software PWM_pic
// rad...
Please give me some easy example of pwm,i know the idea of pwm ,but for example
when i press the switch ,i want to led flashing from 0% to 100%,there is so manny examples but every is differnt and i just cant in h-tech c to make it working
i need something easy to understand ...
Thank you very muck on your answers,I know that there could be troubles with xtal,but i was
only wondering about construction of this program,every day i learn more and more thanks to this forum ...
This is something like PWM ....
PWM i can not understand,how to do this programm with pwm,the...
why do i need to initialize them? i think it work without them just fine
continue does nothing,just like ; continue;=; =)
I know its working on simulator,but would be there some problems in real hardware because of cpu ond __delay_us()?
I am only using two switches ,1 LED and dc motor,other things are not used...
Do this programm work like this ,orI need to use inerputs and timers?
Is it possible to work like that?
i need help;this program works in teory and on simulator,but in real life i do not thinks so;so i need help if enyone wants
to help me ,what i should do to this program work in real life too?
//With one switch speeding with second unspeeding//
#include<htc.h>
#define _XTAL_FREQ 20000000...
Thank you so much,now when I learn how UART works Ill be ready
This will be not finished "soone or soon or not in a short time lol(my english xD"
,but when i finish my project i will post it here ...
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.