I would like to use ADC and UART modul of PIC12F1572.
The problem is that +Vref pin of ADC and Rx pin of UART are same pins and I can not setup Alternate pin function in Flowcode7.
The +Vref pin is not active.
Hi Ben, I've made a version that tested in my Curiosity circuitboard and working. I do not know how to program in C but "A blind man may perchance hit the mark." The idea of the solution can be found in the PIC32 Family Reference Manual, ADC Scanning Multiple Inputs example. The point is that all AD...
Hello Ben, Unfortunately, it did not work. I modified it a bit (ARDY7 and ADCDATA7 from ARDY0 and ADCDATA0) and now the AN7 input is active and the resolution is 6 bits. Should be used in Class 2 or Class 3 mode. The channel parameter is completely ineffective, and can not select the analogue input....
Hi Ben, I accepted your advice, and already I am able to flashing LEDs professionally. :wink: But the ADC does not work properly. The problem is that the Potentiometer component uses the ADC0 module. ADC0 is only assigned to AN0 és A45 with an multiplexer which is connected the RB0(AN0) pin. (This p...
Hi Ben, Thanks for the quick response. I set the prescale value in the SPI component. To the SPI MOSI and SPI CLK output only the oscilloscope was connected to monitor the ADC Return Value. Bus Settings: Clock Polarity: Idle Low Clock Phase:Leading Edge (actually is the Trailing Edge on the photo!) ...
I would like to use the AD Converter of the Curiosity PIC32MZ EF circuit board, but the attached program does not work in the target circuit.
Can I get some help?
Hi All, I would like to ask for help. I have a CURIOSITY PIC32 MZ EF development board with PIC32MZ2048EFM100 processor. Unfortunately, I can not start the simulation of flowchart with this processor. I tried on two computers (WIN7 64bit HUN on both machines). On one of two computer, if I click on t...
Hi Ben, I've been experimenting with PWM this weekend. The 8-bit PIC microcontroller's 16-bit PWM module is more complex than the traditional 8-bit PWM module. There are several modes and several parameters must be set to produce the correct output signal. The PWM component of Flowcode writes into t...
1.Thanks for the advice. (I was searching this setup it in Project Options, Configuration). I have not used the "IntOsc Helper" component before. I succeeded in setting the clock with it.
2. I tried all three options to set the PWM Timer, but the PWM output did not move.
Hello, I would like to use the PWM module of the 12f1572 microcontroller, with internal clock source. 1. But I do not know how to select the proper internal clocks. By default, the internal clock speed is 500KHz (FOSC = 125KHz) so I tried the PWM output with it. 2. Unfortunately, the PWM output does...
Hi Ben, I tested the program in the target circuit and I've experienced the following. I used PICKIT3 (PGED1, PGEC1) to programming, and I used Flowkit2 (PGED2, PGEC2) for debugging. If I set the delay to 100us then the order of execution is 2, 3, 4, 6, 3, 5, (7, 4. 6, 3, 5). The sequence in parenth...
Thanks for the quick response.
Now the program's compilation is okay.
Unfortunately, in the target circuit it does not work, the PWM output is constantly low.
If I testing it in the simulator, when the Duty indicator=100% on the Dashboard Panel then the Duty variable is only 64.
Dear Support, When I want to compile this PWM example program, I get the next error message. I use PIC24FJ256GA110 chip. http://www.matrixtsl.com Fordító indítása... C:\Program Files (x86)\Flowcode 7\compilers\pic16\batchfiles\pic16_C30_comp.bat "pwm_fader" "H:\Flowcode\BUG\" "24FJ256GA110" Launchi...
I have upgraded that as Jorgen described and ..... working.
Thanks the idea.
At first glance, it looks very promising this version.
Congratulation for the MATRIX TEAM.
I really do not want to be a killjoy, but my computer can not install the new version. The first message is that unknown to the manufacturer. :shock: The second message is that the installation package can not be opened. I tried Win7 64bit HUN , and Win10 64bit HUN OP systems. I also really like to ...
Hi Ben, Thank you for helping! :D Maybe I badly formulated. I want to do it, received an ASCII character from the RS-232 port of the PC and displays the gLCD screen. But did not appear the characters which are ASCII code was bigger than 91d. That is why I made this little test program, that is prese...
Hello Everybody,
I would like to see the characters from the ASCII codes on a display.
I have been struggling with it for a half day, but after the 91 code is not displayed the character.
Would help me anyone, what is wrong? (I tried it in the simulator.)
Hi Ben, Thanks, I'll check again, but if the floating point variable is converted to a string then I see on the display what the value should be rounded. When I use the "fround" function before converted to string, that happens what I wrote. I made an example that maybe help. The function in my proj...
Hi Ben,
Thanks for the quick help.
Now, the compiler is able to translate but in the simulator only works correctly if I set y=1 in the "fround (x, y)" function.
In the target circuits after the decimal point on the display appears only "0", independently value of "y".
Maybe I'm doing something wrong but this program works in the simulator, but the compiler is unable to translate this. I use 24FJ256GA110 chip.
Could you help me?