Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 13th May 2008, 08:49 AM   (permalink)
Experienced Member
 
skyrock is on a distinguished road
Default PORTA output problem

Hello all,

I'm facing a problem which PORTA is not working properly. Can anyone tell me if PORTA,4 would work as output if I have an external crystal and TMR1 working?

I've made TRISA b'00001111', I suppose I would still be able to use RA4 as output? But still there isn't any voltage coming out from RA4 after I turned it on. RA6,7 is used for external crystal.

I've uploaded the full code if anyone wants to check it out.
Attached Files
File Type: asm Main.asm (10.9 KB, 7 views)
skyrock is offline   Reply With Quote
Old 13th May 2008, 08:51 AM   (permalink)
Super Moderator
 
Nigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to behold
Default

A4 is an open-collector output (read the datasheet), you need a pullup resistor to use it as a normal output.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now   Reply With Quote
Old 13th May 2008, 10:47 AM   (permalink)
Experienced Member
 
skyrock is on a distinguished road
Default

thanks, got it now.
skyrock is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
IR Fan AtomSoft Micro Controllers 35 19th March 2008 04:56 AM
Splitting serial output microcontroller robz Micro Controllers 2 15th February 2008 07:27 AM
Op-amp cct output impedance dknguyen General Electronics Chat 6 26th January 2008 02:42 AM
Big thermocouple ADC problem Oznog General Electronics Chat 9 4th May 2004 08:42 PM
Input and Output Resistance Help andy257 General Electronics Chat 1 21st April 2004 01:35 PM



All times are GMT. The time now is 10:35 AM.


Electronic Circuits  |  Radio Controlled
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.