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
 
LinkBack Thread Tools Display Modes
Old 17th October 2004, 05:18 PM   (permalink)
Default

Quote:
Originally Posted by sardineta
thanks to all, so in other words it is ok, isn't it?
Yes!.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 17th October 2004, 07:29 PM   (permalink)
Default

returning with one of my last questions
Quote:
The hex file contains the data as ascii indormation and it also carries address information. This makes the hex file a LOT! larger then the actual code size.

if you want to know how much memory is required you should let the compiler generate a list file, it tells you how much memory is required.
This is what the list file says
Program Memory Words Used: 431
Program Memory Words Free: 1617


I have attached the list file, does I have 1671 adresses available?
what about the free flash memory in PIC?
Attached Files
File Type: txt reconectador00.lst.txt.txt (64.5 KB, 15 views)
sardineta is offline  
Old 17th October 2004, 07:38 PM   (permalink)
Default

Quote:
i have attached the list file, does I have 1671 adresses available?
what about the free flash memory in PIC?
yes you have 1617 program locations left...
that IS the flash memory..
williB is offline  
Old 17th October 2004, 07:40 PM   (permalink)
Default

Quote:
Originally Posted by sardineta
This is what the list file says
Program Memory Words Used: 431
Program Memory Words Free: 1617


I have attached the list file, does I have 1671 adresses available?
what about the free flash memory in PIC?
Except for the 'spelling' mistake, you do indeed have 1617 words free.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 17th October 2004, 09:57 PM   (permalink)
Default

Quote:
Originally Posted by Nigel Goodwin
Quote:
Originally Posted by sardineta
This is what the list file says
Program Memory Words Used: 431
Program Memory Words Free: 1617


I have attached the list file, does I have 1671 adresses available?
what about the free flash memory in PIC?
Except for the 'spelling' mistake, you do indeed have 1617 words free.
i cut him a break on his spelling because english isnt his first language :wink:
williB is offline  
Old 18th October 2004, 04:31 PM   (permalink)
Default

sardineta is offline  
Old 19th October 2004, 01:01 AM   (permalink)
Default

Quote:
Originally Posted by sardineta
sorry
williB is offline  
Old 19th October 2004, 11:21 PM   (permalink)
Default

Thanks for your answers!
sardineta is offline  
Old 8th November 2004, 02:40 PM   (permalink)
Default

Hello.

I found that pin RA4 does not work as a normal output, (I can't read 5 volts) I read the datasheet and it says that as OUTPUT it is open drain, so what you recomment me to do? I am thinking in fixing a resistor of 10k from this pin to Vdd, but correct me if I am wrong, please.

Can I connect the output of an op-amp directly to the RA0/AN0 pin, where I configured it as an input for the ADC?, or I need a resistor from here to VSS.

The pins I am not using from port A and C what do I have to do with them? do them grounded?

Thanks!!
sardineta is offline  
Old 8th November 2004, 05:15 PM   (permalink)
Default

Quote:
Originally Posted by sardineta
Hello.

I found that pin RA4 does not work as a normal output, (I can't read 5 volts) I read the datasheet and it says that as OUTPUT it is open drain, so what you recomment me to do? I am thinking in fixing a resistor of 10k from this pin to Vdd, but correct me if I am wrong, please.
No, that's fine, that's what you need to do.

Quote:
Can I connect the output of an op-amp directly to the RA0/AN0 pin, where I configured it as an input for the ADC?, or I need a resistor from here to VSS.
You can connect it direct.

Quote:
The pins I am not using from port A and C what do I have to do with them? do them grounded?
You can just leave them, it makes very little difference - it varies from person to person, but some people set them as outputs. Personally I don't pay the slightest attention to how they are set, I just ignore them.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 8th November 2004, 07:00 PM   (permalink)
Default

Thank you, Nigel.
sardineta is offline  
Old 8th November 2004, 10:05 PM   (permalink)
Default

Does the stack has to do with the interrupts I am using?
I hahe vonfigured two interrupts one of them is by using timer0 and the other one is by RB0.
Inside the ISR the program saves the W register and the Status register.

When I have a signal in the input at the op amp it works but when there is no signal I see at the output of the op amp a signal that is different from zero, what can I do to get a 0 volts or gnd while there is no signal at the input of the opamp.

I have realized that when the AN0 (analog input) has no signal it behaves as if it sees a voltage different from zero (ground). because I am changing my point of observations I have a deal with this changes.
This pin RA0/AN0 always should be connected to a voltage point?

thanks
sardineta is offline  
Old 8th November 2004, 10:13 PM   (permalink)
Default

Quote:
Originally Posted by sardineta
Does the stack has to do with the interrupts I am using?
I hahe vonfigured two interrupts one of them is by using timer0 and the other one is by RB0.
Inside the ISR the program saves the W register and the Status register.

When I have a signal in the input at the op amp it works but when there is no signal I see at the output of the op amp a signal that is different from zero, what can I do to get a 0 volts or gnd while there is no signal at the input of the opamp.

I have realized that when the AN0 (analog input) has no signal it behaves as if it sees a voltage different from zero (ground). because I am changing my point of observations I have a deal with this changes.
This pin RA0/AN0 always should be connected to a voltage point?

thanks
sardinetta , how have you wired the op amp inputs?
williB is offline  
Old 9th November 2004, 12:30 AM   (permalink)
Default

This is the circuit I want to connect to the pic 16F870, at pin RA0/AN0.

The problem as I mentioned above is that when there is no signal I have a DC voltage level at the output.

the gain at output is 1.5

Thanks a lot for your help
Attached Images
File Type: jpg analog_stage.jpg (34.1 KB, 219 views)
sardineta is offline  
Old 9th November 2004, 06:45 AM   (permalink)
Default

Quote:
Originally Posted by sardineta
This is the circuit I want to connect to the pic 16F870, at pin RA0/AN0.
As you're powering the opamps off +/-9V you MUST add a series resistor between the output of the opamp and the input of the A2D. PIC inputs have clipping diodes between the input pin and Vdd/Vss, to prevent the inputs going outside permitted limits. Feeding directly from the opamp could cause too much current to flow.

Quote:
The problem as I mentioned above is that when there is no signal I have a DC voltage level at the output.

the gain at output is 1.5

Thanks a lot for your help
It sounds like you have a DC offset at the output of the opamp, you need to correct it - probably using a preset resistor so you can adjust it.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 11:07 AM.


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

eXTReMe Tracker