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: 780
i am doing a project to design a simple calculator using pic18f452,
pic18f452, in MPLAB IDE, using pic assembly language, and simulate it in proteus(using 4x4 keyboard,16x2 lcd)
right now i am trying to study the pic assembly language and tried to interface the lcd but it is not working. i need to finish this urgently pls, help.
Microcontrollers :: 09-23-2014 16:00 :: piyush999 :: Replies: 7 :: Views: 990
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: 1148
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: 560
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: 815
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: 473
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: 810
Here are a few tutorials which cover the pic18F timer modules:
Introduction to pic18′s timers ? PIC Microcontroller Tutorial
Microcontrollers :: 01-08-2012 10:26 :: bigdogguru :: Replies: 3 :: Views: 1794
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: 1126
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: 1214
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: 2150
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: 5956