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.

PIC18F46 external oscillator input pins

Status
Not open for further replies.

mikeOJ

Member
Hi, I've written a program that runs a reoccurring set of instructions
it is reliant on port c to drive a seven segment display however on the first cycle it works fine
subsequent cycles do not allow PIC18F bits 6 or 7 to light the segment

The data sheet says if timer 1 oscillator is enabled PORTC pins 6 and 7 will be set as inputs and the TRIS value will be ignored, but i have no timer 1 oscillator set, and that would not explain why it worked in the first cycle but not subsequent cycles. obscure i know, but i am completely out of ideas. i have no spare output pins to use :(
 
On PIC18F with 28pin devices, pins RC6 and RC7 are also used for the USART.

If your code turns the USART on, those two pins will no longer function as digital outputs.

Of course that's just a wild guess until you post all your code. :)
 
Status
Not open for further replies.

Latest threads

Back
Top