articles?
Type: Posts; User: fortune2k
articles?
google my be my friend but i can find nothing on delay, timers, or anything that is importance to what im trying to do :( 20 pages and nothing
i could make my lgiths flash using this code:...
lol im really new to programming for micro controllers do u know any reading material or tutorials about hardware timers soo i can mess around with them so i can understand them. Im a newbie sorry
hmmmm i have sent a messege nothing back
what im after is
while 1
{
LIGHT ON
delay 0.5 secs
LIGHT OFF
delay 0.5 secs
hi
int hours, mins, secs, ticks, times; /*Global Variables for returning values*/
unsigned char *tflg2, *pact1, *tmsk2;
@interrupt void timer(void){
ticks++;
if (ticks==30){...
right my compiler doesnt use timer.h next option :(:( any more ideas?
i shall have a look and test it out, cheers
its a motorola hc6811 i may of mis typed it . yea im trying to find info about hardware timers
i pulled that code off the net and dont have a clue yea it looks kinda what im after but i need to find some reading material on it sooo i can implement it into my code anyone got any links? i...
unfortunately my tutor is away and i have no 1 and my hand in date is on friday :( all i remember in the past is someone mentioning using the hardware timer, or tweaking a while look . but my...
agh well scrap that idea then sorry.
well i need to make a function to delay my program by 0.5 seconds i tried adaks idea using :
#include <dos.h> that seems what i need but i dont have the...
well that code doesnt run sooo i cant see how its working whats missing then i can play around with it and maybe get somewhere
right i dont think i can use that way i get cannont open dosh.h sooo maybe a hardware timer should be used because sometimes i have 1 light running out of time
i have found an example of a...
i use a .bat file for called CRAM which compiles my .c files and allows me to upload them to the board. Im going into school in a bit to test it out i shall let u know how i get on
thankyou
how would i use the delay() command in my example do i need any special header files? how would i call it ect ect??
oh sorry yea its in a while(1) loop so its a infinity loop but it has loads of other bits and bobs in so its actually like this:
//depending on the mask this will make the lights flash on or...
H,i im using micro controllers ( the 68hc11 board) to make some lights flash ect and i have to have it
1 fps – flashes per second. 1fps = 0.5 secs. on, 0.5 secs off,
//depending on the...
yea i have used fedora,ubuntu , ubuntu live and red hat 5 i need it running on redhat but the program is unrealiable its like a 50% chance i will get the number of process i ask it to do ...
right i have still got the same problem after reading your ideas the program seems to jump out the loop then try n go back in and add more processes to the pipe but its closed
right im heading to bed good night all i will pick up on this 2moz thanks for help hopefully i can sort this its a pain
heres my read function on the despooler.c
void read_pipe(FILE *fifo, char* nxt, char* tok){
nxt[0] = fgetc(fifo);//read one character from pipe
if(nxt[0] == '*'){//if asterix is read,...
i have been messing around changing values and still dont get it sometimes it works and somtimes it doesnt why is this happening?
./spool 9
Pipe created, waiting for despooler to read......
hi i have a problem with either my forking or pipe which i cant spot or get my head around . Right here is my fork code:
right what this is supposed to do is when I run the program "./spool...
i am ment to make a simple burgalar alarm disarmd : all 6 zones (6lights 6 switches) off, armed : all the zones or 1 of them will have the lights flashing at 0.5 seconds constant, and then when a...
hi im making a c program for the 68hc11 and to out put flashing ect ect on 6 lights on a O/I board i need to use a while loop to keep my lights flashing but i need program to continue on
heres my...