Hello
I have a chipKIT-Uno32 board I can also use this under flowcode 8, or i have to consider some special features
PIC 32MX320
Moderator: Benj
-
- Posts: 89
- Joined: Wed Aug 31, 2016 4:48 pm
- Been thanked: 4 times
- Contact:
- QMESAR
- Valued Contributor
- Posts: 1287
- Joined: Sun Oct 05, 2014 3:20 pm
- Location: Russia
- Has thanked: 384 times
- Been thanked: 614 times
- Contact:
Re: PIC 32MX320
Hi
Yes you can use the chipKit u3 directly out of FC8 and it also programs over the boot loader out of FC 8
Yes you can use the chipKit u3 directly out of FC8 and it also programs over the boot loader out of FC 8
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR
-
- Posts: 89
- Joined: Wed Aug 31, 2016 4:48 pm
- Been thanked: 4 times
- Contact:
Re: PIC 32MX320
Hello,
QMESAR thank you so much for pointing that out. I have selected the "ChipKit UNO 32 Bootloader" template and made port E0 blink at 1.0 Hz intervals. My oscilloscope showed a frequency of 1.33 Hz which seems a bit too high to me. After adding the component "UART (Serial)" I wanted "UNO32... "is output. After I build, Serial was only output with confused characters. From my point of view the clock frequency set by FC8 does not match the actual clock frequency of the 32MX320.
With a reconstructed Arduino Sketch the ChipKit board runs without problems.
Do I have to change or adjust anything afterwards?
Can anyone help me solve the problem?
QMESAR thank you so much for pointing that out. I have selected the "ChipKit UNO 32 Bootloader" template and made port E0 blink at 1.0 Hz intervals. My oscilloscope showed a frequency of 1.33 Hz which seems a bit too high to me. After adding the component "UART (Serial)" I wanted "UNO32... "is output. After I build, Serial was only output with confused characters. From my point of view the clock frequency set by FC8 does not match the actual clock frequency of the 32MX320.
With a reconstructed Arduino Sketch the ChipKit board runs without problems.
Do I have to change or adjust anything afterwards?
Can anyone help me solve the problem?
- QMESAR
- Valued Contributor
- Posts: 1287
- Joined: Sun Oct 05, 2014 3:20 pm
- Location: Russia
- Has thanked: 384 times
- Been thanked: 614 times
- Contact:
Re: PIC 32MX320
Hi
What exact board do you have ? there are two hardware variants the UNO32 ind the uC32 from chipkit that might cause issues
also if you have selected the correct board please post your FC chart for the team to investigate the issue for you
What exact board do you have ? there are two hardware variants the UNO32 ind the uC32 from chipkit that might cause issues
also if you have selected the correct board please post your FC chart for the team to investigate the issue for you
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR
-
- Posts: 89
- Joined: Wed Aug 31, 2016 4:48 pm
- Been thanked: 4 times
- Contact:
Re: PIC 32MX320
Hello,
I have a chipkit UNO32. Bootloader as shown in the appendix.
I have a chipkit UNO32. Bootloader as shown in the appendix.
- Attachments
-
- 2019-11-18 23_17_48-Projekt-Optionen.png
- (10.07 KiB) Downloaded 625 times
-
- 2019-11-18 23_16_38-Introduction_to_chipKIT.PDF - Adobe Acrobat Reader DC.png
- (387.24 KiB) Downloaded 625 times
-
- Posts: 89
- Joined: Wed Aug 31, 2016 4:48 pm
- Been thanked: 4 times
- Contact:
Re: PIC 32MX320
Hello
I have configured the PIC 32MX320F128H as follows:
#pragma config FWDTEN = OFF
#pragma config POSCMOD = OFF, FNOSC = 7, FPBDIV = 0
FRCDIV = 0
So the clock frequency is 8MHz. Proved by blinking LED and oscilloscope.
Then I set the UART as follows:
U1BRG = 103; // Baudrate 19200 at 8MHz Sys-Clock
U1STA = 0;
U1MODE = 0x48008; // Enable UART for 8-bit data and SYS clock
// No Parity, 1 Stop bit
U1STASET = 0x1400; // Enable Transmit and Receive
Result:
the UART sends 9600 Baud instead of 19200
I have the same values when I use the UART initialization component
Adding the register entry CLKSEL in UxMODE has no effect on the behavior of the UART.
Can someone help me set up the UART registers correctly?
I have configured the PIC 32MX320F128H as follows:
#pragma config FWDTEN = OFF
#pragma config POSCMOD = OFF, FNOSC = 7, FPBDIV = 0
FRCDIV = 0
So the clock frequency is 8MHz. Proved by blinking LED and oscilloscope.
Then I set the UART as follows:
U1BRG = 103; // Baudrate 19200 at 8MHz Sys-Clock
U1STA = 0;
U1MODE = 0x48008; // Enable UART for 8-bit data and SYS clock
// No Parity, 1 Stop bit
U1STASET = 0x1400; // Enable Transmit and Receive
Result:
the UART sends 9600 Baud instead of 19200
I have the same values when I use the UART initialization component
Adding the register entry CLKSEL in UxMODE has no effect on the behavior of the UART.
Can someone help me set up the UART registers correctly?
- Attachments
-
- 32MX320F128H_V2.fcfx
- (9.59 KiB) Downloaded 161 times
-
- Valued Contributor
- Posts: 654
- Joined: Fri Aug 19, 2016 2:09 pm
- Location: switzerland
- Has thanked: 182 times
- Been thanked: 179 times
- Contact:
Re: PIC 32MX320
Hi Pascal
You can use the component UART and add a C code below with a simple code. Test if 103 is correct for your speed.
regards
Stefan
You can use the component UART and add a C code below with a simple code. Test if 103 is correct for your speed.
regards
Stefan