Search found 18 matches

Return

by Steve
Thu Jul 05, 2018 9:11 am
Jump to forum
Jump to topic

Re: PIC16F18426 Loop error

I suspect it is the watchdog timer. You will need to clear this periodically, or it will reset the microcontroller.
by medelec35
Mon Oct 22, 2018 10:05 am
Jump to forum
Jump to topic

Re: PIC16F1788 Clock?

Hi seokgi, Your code is missing a C Code block with an OSCCON value at the very start of your program. The OSCCON=0xXX value sets the speed of internal oscillator. Without the OSCCON value set, the internal oscillator will run at the default value. Looking at the datasheet on page 86,its 500KHz: Int...
by Benj
Tue Nov 27, 2018 11:40 am
Jump to forum
Jump to topic

Re: Gyroscope Prob?

Hello,

Thanks for letting us know.

I have now pushed some changes to the updates system which should hopefully solve the problem for you.
by Benj
Mon May 20, 2019 9:56 am
Jump to forum
Jump to topic

Re: After FC 8.2 Update Modbus is Not work

Hello, Please can you try the following to see if it helps the situation at all. Click View -> Global Options -> Application Tab -> Reset Data Files button -> Yes Hopefully this should get things back into a working state for you as well as give you all the latest 8.2 goodies. You are prompted with ...
by chipfryer27
Wed May 29, 2019 10:05 am
Jump to forum
Jump to topic

Re: RS-232 Data bit option ?

Hi I assume you are using the OP-04 serial option? I quickly grabbed a manual for the AD4325A online and in section H it clearly shows that it transmits a start bit followed by seven data bits, a parity bit then a stop bit much as Leigh suspected. Assuming you have your baud set correctly and data s...
by chipfryer27
Wed May 29, 2019 10:56 am
Jump to forum
Jump to topic

Re: RS-232 Data bit option ?

Hi OK if you can see the correct string on the PC it sounds like perhaps a setting or something simple is incorrect with your circuit. What microcontroller are you using? Is the clock source set correctly? Very easy to overlook and we have all done it (and most likely will again). You could try this...
by LeighM
Tue May 28, 2019 3:04 pm
Jump to forum
Jump to topic

Re: RS-232 Data bit option ?

Probably a problem :D Your initial comments suggested that you think the UART transmits 1 start bit, 7 data bits and 1 stop bit, are you sure that is the case? I'm just checking that, because I think that is very unlikely, I would suspect that it is 1 start bit, 7 data bits, parity bit undefined and...
by LeighM
Tue May 28, 2019 1:43 pm
Jump to forum
Jump to topic

Re: RS-232 Data bit option ?

Parity is any.

That sounds like the usual 7 data + parity + stop.
Could you attach the datasheet for the sender?
by chipfryer27
Mon May 27, 2019 1:44 pm
Jump to forum
Jump to topic

Re: RS-232 Data bit option ?

Hi

What is it you are trying to do? Do you really need to manipulate bits or could the UART do a lot of the work for you?

This page might be helpful
https://www.engineersgarage.com/articles/what-is-rs232

Regards
by chipfryer27
Mon Jun 03, 2019 12:05 pm
Jump to forum
Jump to topic

Re: RS-232 Data bit option ?

Hi

Happy to hear you have solved your problem.

I am not a C-programmer either which is one of the reasons FC is great, and by using the C-Code Icon and the knowledge base I have greatly increased my understanding over the years.

Regards
by Lagoda
Tue Jul 30, 2019 10:34 pm
Jump to forum
Jump to topic

Re: 18F67K40 UART Problem

Hi, According to the MPLAB Code Configurator: " External clock frequency is greater than recommended value(20MHz) " You may have to try with a lower frequency. But this is just an idea. Unfortunately the MCLR pin can only be input port. MCLR Disabled.png Lagoda Using MPLABX, I created a te...
by LeighM
Tue Jul 30, 2019 2:59 pm
Jump to forum
Jump to topic

Re: 18F67K40 UART Problem

Do the UARTs output anything, even if invalid data?
Do you have an oscilloscope to check?
The clock speed in Project Options looks odd, is it correct?
by Lagoda
Tue Jul 30, 2019 1:05 pm
Jump to forum
Jump to topic

Re: 18F67K40 UART Problem

Hi, Seokgi

The clock signal of target circuit is it working ?
I think, if the clock source is an HS quartz crystal connected to the OSC1 and OSC2 pins, then the OSC2 output must be enabled in the Project Option / Configure window.

Best Regards,

Lagoda
by Lagoda
Thu Aug 01, 2019 2:51 pm
Jump to forum
Jump to topic

Re: 18F67K40 UART Problem

OK.
Then you are sure that your circuit is not faulty.

Have you ever tried to set the HighVoltage programming mode in Configuration Settings? (This is now set to LV in your test program.)
What type of programming tool do you use?

Lagoda
by QMESAR
Thu Aug 08, 2019 5:13 am
Jump to forum
Jump to topic

Re: 18F67K40 UART Problem

Hi.
well I am not sure what is going on here however in my understanding of the Datasheet MCLR is at pin RG5 and not RE3 as in the FC definition file and it seems one UART is using RE3

P1.jpg
by Lagoda
Wed Aug 21, 2019 9:55 am
Jump to forum
Jump to topic

Re: 18F67K40 UART Problem

Try this test program. Port C6 is the output of UART TX.

Is it working?

Lagoda
by Lagoda
Tue Aug 27, 2019 1:44 pm
Jump to forum
Jump to topic

Re: 18F67K40 UART Problem

Hi Seokgi,

I'm using the PIC24FJ256GA106 and PIC24FJ256GA110 MCUs.
UART, SPI, ADC, PWM peripherals work perfectly in these devices. (I only use these peripherals at the moment.)
I use INT0, UART RX and Timers interrupts. They are working perfectly too.

That's a good choice, I think.

Lagoda
by Lagoda
Wed Aug 28, 2019 10:25 am
Jump to forum
Jump to topic

Re: 18F67K40 UART Problem

Hi, In my experience, the compiler can be used immediately after installation. See the WIKI for help selecting and configuring the programmer. https://www.matrixtsl.com/wiki/index.php?title=Supporting_Third_Party_Programmlsing_Tools I took a closer look at the PIC24FJGA406 MCU. It has a very rich se...