Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
You didn't take the hint.
"==" is NOT an assignment operator, it is a comparison operator, so that does not change the value in modef.
Try just a single "=", i.e.
modef = 0;
I guess John doesn't appreciate the help he is getting at
https://www.microchip.com/forums/m1182951.aspx
and
https://www.microchip.com/forums/m1182902.aspx
I suspect the target is always a PIC12F675. It's the PIC doing the programming that the OP wants to vary (or maybe is prepared to use whatever PIC it takes to do the job)
On the real hardware?
In "debug" mode, or just run mode?
As Susan stated, in debug mode, that pin is reserved for the debugger. An LED on that pin could not work.
All the voltages should be measured with respect to ground.
I guess you mean that from ground to pin #6 is -6.7V. i.e. a negative voltage.
That is a little lower than I would have expected, but still ok.
So, when the PIC is just idling, pin#11 (T1IN) should be high ( 3 to 5V), and pin#14 (T1OUT)...
So there is no cable between the adaptor and the DE-9 connector.
The USB cable on the other side of the adaptor doesn't count.
So, still garbage displayed in your terminal program.
Have you done the voltage checks around the MAX232 chip that I asked you to do on the Microchip forum?
So you should have changed
#define _XTAL_FREQ 8000000
to
#define _XTAL_FREQ 20000000
which I see you have now done.
"through a cable" is not "directly".
Are you sure this is a "straight though" cable?
i.e. every pin at one end connects to the same pin at the other end?
"Null modem" cables are...
What is the frequency of the crystal on that board?
You have not changed the number in the _XTAL_FREQ from 8000000.
Are you plugging your USB-RS232 adaptor directly into the DE-9 connector on the board, or through a cable?
He means the socket on the PIC board, and just swap the inputs to the on-board MAX232 chip, which is what I suggested ages ago.
That needs to be "FOSC=HS1" if the crystal is 4-16MHz, or "FOSC=HS2" if it is 16-25MHz.
The number should be the crystal frequency in Hertz.
The "other" thread is at https://www.microchip.com/forums/m1154362.aspx
I have spent a lot of time trying to help this user. I agree he has a hardware connection problem, but he seems to have a very short attention span, and ignores half of what he is told.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.