View Full Version : 16f628 supply voltage 3.3v
ngeronikolos
- 21st July 2006, 14:02
Hello to everybody,
I have a question.The datasheet of the 16f628 claims that the operation voltage range is 3.0v-5.5v.
I try to supply with 3.3v but it is dead.It starts working from 4.5V.
Do I need to set it so as to start from lower voltage.
Thnks in advance
Regards
Nikos Geronikolos
Bruce
- 21st July 2006, 14:59
Set config fuse BOD "brown-out detect" to off to disable brown-out detection.
Look in the Electrical Specifications section of your data sheet for Brown-Out
Detect Voltage for an explanation.
ngeronikolos
- 21st July 2006, 15:23
Thanks Bruce,
I have just turn the brown-out detect to OFF.
All is playing nowwwww.
Thanks again.
ngeronikolos
- 21st July 2006, 15:31
Bruce an other one question.
Do you have any idea how I one pic will read an ASCII from an other and send to a pc.
What I mean is:
1st pic:
SerOUT portb.5,N2400,["ID:001 TYPE:A"] <----
2st pic:
SerIN portb.0,N2400,SerialData
hserout [SerialData]
My pc terminal is receiving $#%#$@^%$^
Please advice
Bruce
- 21st July 2006, 15:57
Have you verified your PIC sending data to the PC works?
What happens if you send HSEROUT ["Hell World..!"]?
Also your sending 13 bytes from PIC #1, but only receiving "1" byte at PIC #2.
Look at using SERIN2 with the string modifier.
yourmomOS
- 21st July 2006, 20:33
create an array in the second pic
X var byte
X = 15
serialData var byte[X] <- or however long the data is
1st pic:
SerOUT portb.5,N2400,["ID:001 TYPE:A"] <---- your outputting ascii
2st pic:
SerIN portb.0,N2400,SerialData <----your receiving the ascii number rep...
hserout [STR SerialData\X] <---declare tht it is a string your outputting
That should work but I didnt try it.
Bruce
- 21st July 2006, 20:51
SerIN portb.0,N2400,SerialData is only going to receive a single byte of data.
Assuming you had a 13 byte array, I.E. SerialData VAR BYTE(13), then the
above would receive a single byte in SerialData(0).
The name of any array is simply a pointer to the starting address of the array
in RAM.
SerialData VAR BYTE(13)
SERIN2 portb.0,16780,[STR SerialData\13] would receive all 13 bytes.
ngeronikolos
- 24th July 2006, 14:56
Bruce,
I can talk with my PC using HSEROUT of the 2st pic.That is ok.
I try to use thje followings wityh no success:
--------------------------------------------
1st pic:
SerOUT portb.5,N2400,["ID:001 TYPE:A"] <----
2st pic:
SerialData VAR BYTE(13)
SerIN portb.0,N2400,SerialData
hserout [STR SerialData\13]
--------------------------------------------------
1st pic:
SerOUT2 portb.5,N2400,["ID:001 TYPE:A"] <----
2st pic:
SerialData VAR BYTE(13)
SerIN2 portb.0,N2400, [STR SerialData\13]
hserout [STR SerialData\13]
-----------------------------------------------------
Nothing is playing of the following
Please advice
Bruce
- 24th July 2006, 15:05
Try changing these;
SerOUT2 portb.5,N2400,["ID:001 TYPE:A"]
SerIN2 portb.0,N2400, [STR SerialData\13]
To this;
SerOUT2 portb.5,16780,["ID:001 TYPE:A"] <----
SerIN2 portb.0,16780, [STR SerialData\13]
Does it work now?
Powered by vBulletin® Version 4.1.7 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.