Continue to Site

Welcome to EDAboard.com

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.

PIC to control charging time

Status
Not open for further replies.

isaac12345

Member level 2
Joined
Mar 24, 2010
Messages
47
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,634
Hi,

I'm trying to make a NiMH battery charger and was wondering if it would be feasible to use a PIC 16F84's internal timer to time 8 hours(after which the charging switches off).
Sorry if its a noob question, but I'm a noob with microcontrollers.
 

Hi,
The timer in 16F84 is 8-bit, so it can count only up to 255. With a clock of 4MHz (1MIPS carryout), you can only have a delay of 256 microsecond. Prescale that to 256, and you get 65.5ms. So you need to check for the delay MANY times. It does not seem feasible.
So, I think you should use a software loop for the 8-hour delay.
If you use C or BASIC, the compiler should have delay functions, which can loop as many times as required.
Take a look at:
**broken link removed**
**broken link removed**

Hope this helps.
Tahmid.
 

Thanks for the reply.

I am thinking of using C to program the microcontroller. Does the delay function stop the microcontroller from doing anything at all and puts it in a state similar to reset or simply makes it delay a certain number of seconds, during which its in its previous state, before moving on to the next instruction?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top