Donate Share

gpsim - The gnupic Simulator

Tracker: Bugs

5 TMR0 not incrementing (gpsim 0.21.11, 16F84) - ID: 1448774
Last Update: Settings changed ( roy_r_rankin )

I'm attempting to simulate an example from "PIC In
Practice" (new edition). This is a straightforward
example that uses TMR0 to implement a 1 second delay,
by setting the prescaler to 256 (with a 32KHz
crystal), and waiting for TMR0 to reach 32. This
doesn't work in GPSIM, because TMR0 does not seem to
increment with each instruction, so the code gets
stuck in the timer loop..


Colm O Flaherty ( colm_o_flaherty ) - 2006-03-13 11:04

5

Closed

Works For Me

Roy Rankin

None

None

Public


Comment ( 1 )

Date: 2006-03-16 12:50
Sender: colm_o_flaherty

Logged In: YES
user_id=884387

Note: this only seems to be an issue when I "step" through
the code, but if I "run", the tmr0 field does indeed get
incremented.


Attached File

No Files Currently Attached

Changes ( 5 )

Field Old Value Date By
status_id Open 2009-02-27 01:43 roy_r_rankin
resolution_id None 2009-02-27 01:43 roy_r_rankin
assigned_to nobody 2009-02-27 01:43 roy_r_rankin
allow_comments 1 2009-02-27 01:43 roy_r_rankin
close_date - 2009-02-27 01:43 roy_r_rankin