11 Threads found on edaboard.com: pic18 Timer
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: 576
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: 689
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: 381
There is not much in using a timer. You just need to configure the registers correctly. Or you can refer the pic18 reference manual
Microcontrollers :: 08-30-2013 10:50 :: shatruddha :: Replies: 3 :: Views: 677
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: 375
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: 715
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: 1484
If that is the only thing your uC has to do, you may use a delay (otherwise you may use a timer);
First find time to operate one instruction cycle; Tcy (base on your oscillator speed for pic18 it is; 4/(Osc speed) seconds);
Find value; how may instructions should be wasted to achieve delay-time;
Write a code to waste that much of in
Microcontrollers :: 01-19-2011 03:31 :: DineshSL :: Replies: 3 :: Views: 990
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: 1044
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: 2024
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: 5402