Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

PIC 16F684 - I can't simulate an external oscillator for TMR1 with MPLAB SIM

Status
Not open for further replies.

ljcox

Well-Known Member
I have MPLAB V8.73 and I'm using MPLAB SIM to simulate a programme I wrote for a PIC 16F684.

I want to drive TMR1 with a 32.768 kHz crystal.

But when I try to simulate this situation, TMR1 does not change.

I set _INTOSC_OSC_NOCLKOUT in the configuration and the following bits in the programme:-

PIE1, TMR1IE

INTCON, PEIE

T1CON, TMR1CS; T1CON, T1OSCEN & T1CON, TMR1ON

I'm using PIR1, TMR1IF to determine when an overflow of TMR1 occurs.

I setup the Clock Stimulus as shown in the attachment.

What am I missing?

Any advice will be appreciated.

Len
 

Attachments

  • Clock stimulus.jpg
    Clock stimulus.jpg
    102.7 KB · Views: 213
Status
Not open for further replies.

Latest threads

Back
Top