12 Threads found on edaboard.com: pic18 Timer
What do you mean "...not working..."?
Does it compile? Does it load into the device? have you tried using a debugger to single step through the code to make sure that it is running at all? Is the ISR being called?
I see that the INT0 pin on the pic18F2520 also has AN12 on it - have you made sure that pin is working in 'digital' mode (look up ADCON1
Power Electronics :: 10-11-2015 18:40 :: Aussie Susan :: Replies: 16 :: Views: 691
Are you using the schematic from the proteus ISIS sample pic18 folders?
Post your .asm file so we can look at it in detail...
Microcontrollers :: 09-23-2014 20:36 :: Allen6502 :: Replies: 7 :: Views: 875
Apart from possible alternatives, the OP is essentially asking how a polled timer delay can be implemented with pic18.
The answer is, yes, it works exactly as in your code (or the similar code suggested betwixt). So if you don't get the expected result, there's apparently a problem with the timer setup. It's not shown in your code (...)
Microcontrollers :: 09-13-2014 05:26 :: FvM :: Replies: 14 :: Views: 1025
you need to clear the watchdog timer before it times outs and reset the processor
in C there is usually a function call, e.g. pic18, PIC24, etc ClrWdt(); // clear watchdog timer
there will be a similar instruction in assembly language, e.g.
Microcontrollers :: 05-21-2014 01:32 :: horace1 :: Replies: 5 :: Views: 508
Can anybody check on my code please? because The timer1 is not working, in datasheet of pic18F4553 there is nothing about it, i'm only using pic18F4550.
i'll put in attached proteus and mikroc file.
Thank you again,
Microcontrollers :: 08-27-2013 10:08 :: hayawana :: Replies: 3 :: Views: 792
Hi All ,
One question for electronic expertise,
I have pic18f25k22 , which is a great microcontroller, I made small project which is connect to GSM modem and temperature sensor , the project will send me SMS every 20 Minutes, the pic18 will read temperature them send sms using gsm modem , then after that the pic18 will be switch (...)
Microcontrollers :: 01-16-2013 08:53 :: mot1639 :: Replies: 8 :: Views: 449
If you want to know from the basic to spi and i2c protocols and interfacing devices like motor, relay, DS1307( timer)
go for the Muhammed Ali mazidi book for pic18.
he start with the assembly and then C language.
I think this is the best book.
He also written book on 8051,AVR and intell etc.
Microcontrollers :: 06-03-2012 01:24 :: arunraj1984 :: Replies: 2 :: Views: 789
hi i m trying to learn the timer for pic18F452...please anyone can help me out about how to configure the timer and how to use TMR1L and TMR1H registers...
Microcontrollers :: 01-08-2012 09:47 :: angadaria :: Replies: 3 :: Views: 1733
Hi, just a small enquiry.
I am using the pic18f4520.
It consist of 6 LEDs.
I am required to make a program, which creates a walking LED,
meaning each LED will light up concurrently
I am having a problem in creating the delay for the LEDs
I would like to know the program for this function.
Yr help would be much appreciated
Microcontrollers :: 01-19-2011 02:58 :: mohideen :: Replies: 3 :: Views: 1083
Hi there , I am in a midst of a project and has some question to ask about
This is what one of the function that I would like to carry out in a micro controller and I would like to know whether it is workable and if it work , how do I go about doing it.
Lets make the delay as 2 second.
lets take the () bracket as the delay
Microcontrollers :: 01-11-2011 04:52 :: Darkbyte :: Replies: 1 :: Views: 1164
please help me to design a system using pic18 microcontroller that base on the current mechatronics product available in the market. my design shuld use interrupt peripheral, whit at least three of the following item:
1) hardware timer/counter
2) analog to digital converter (ADC)
4) relay/valve/ moto
Microcontrollers :: 08-22-2010 00:34 :: noman87 :: Replies: 6 :: Views: 2112
I am using a pic18F24K20 and would like to know how to set up timer1 and the interrupts. Does someone have an example I can work from?
Microcontrollers :: 02-15-2010 18:42 :: RandyB :: Replies: 4 :: Views: 5836