piclist 2001\01\03\171624a >
Thread: Timer 0
www.piclist.com/techref/microchip/time.htm?key=time
flavicon
face BY : Dan Michaels email (remove spam text)



Dave Van Horn wrote:
........
> From everything I've seen so far, the problem is that the timer isn't
>running in real life, but it IS running in the simulator.  Obviously
>there's some hardware stimulus that isn't there in the sim, but I can't see
>why what I've got, would matter to the timer.
>
>I'm going to search through, and see if I have anything maybe writing to
>option with the wrong bank selected, or writing the wrong thing to option..
>

Dave, here is the best advice anybody could ever give someone
dipping their feet into PIC programming:

1 - take that simulator disk, and throw it in the can.

2 - setup a small pcb specifically for a 16F84, with an RS232
   port, and a 3-pin machine pin socket for swapping xtals
   and resonators. If possible, add ICSP to the board.

3 - forget about '877 chips [for a couple of weeks at least].

4 - disable the WDT and don't mess with interrupts initially.

5 - work thru all the basic routines and timer ops using small
   programs, and "always" use calls to subroutines for everything
   other than the main loop - ie, code as modules.

6 - start with tiny programs to attack every new operation you
   try, and test, test, test.

7 - once the basic things work as small modules, add complexity
   [interrupts, WDT, bank switching, page switching, etc],
   and integrate the small modules into large programs.

It's just like designing and building hardware.

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


<1.5.4.16.20010103151106.21ff7716@pop.dnvr.uswest.net>

See also: www.piclist.com/techref/microchip/time.htm?key=time
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Timer 0

month overview.

new search...