Great, you did it yourself!
However if you look at table 22-1 with the frequency of 16 MHz you should choose fosc/16.
If I don't have time problems to respect, I choose ADCRC, it's always fine.
Search found 45 matches
- 30 Apr 2023 15:47
- Forum: mikroC PRO for PIC General
- Topic: 16F18345 ADC channel mapping?
- Replies: 9
- Views: 1070
- 16 Apr 2023 09:19
- Forum: mikroC PRO for PIC General
- Topic: 16F18345 ADC channel mapping?
- Replies: 9
- Views: 1070
Re: 16F18345 ADC channel mapping?
There are no associations for the ADC inputs, they are fixed you can see them from the "PIN ALLOCATION TABLE". For the use of PPS, I'll give you an example: Unlock_IOLOCK(); RA0PPS = 0x14; //RA0->EUSART1: TX1; RXPPS = 0x01; //RA1->EUSART1: RX1; Lock_IOLOCK(); "Unlock unlocks the PPS function, Lock l...
- 15 Apr 2023 18:00
- Forum: mikroC PRO for PIC General
- Topic: 16F18345 ADC channel mapping?
- Replies: 9
- Views: 1070
Re: 16F18345 ADC channel mapping?
Sorry, I sent the attachment in a hurry.
Do not read the comments concerning the TMR0 are quite another thing.
// 1/4,000,000 = 0.00000025
// 0.00000025 * 16 = 0.000004
// 0.001 (1ms) / 0.000004 = 250
// TMR0H = 250
Corrected comments
Do not read the comments concerning the TMR0 are quite another thing.
// 1/4,000,000 = 0.00000025
// 0.00000025 * 16 = 0.000004
// 0.001 (1ms) / 0.000004 = 250
// TMR0H = 250
Corrected comments
- 15 Apr 2023 17:49
- Forum: mikroC PRO for PIC General
- Topic: 16F18345 ADC channel mapping?
- Replies: 9
- Views: 1070
Re: 16F18345 ADC channel mapping?
simplified working PIC16F18346 (it's the same) Internal 16 MHz oscillator [// ----------------------------------------------------------------------------- /* * Project name: * Copyright: (c) MikroElektronika, 2015. JUMBO elettronica jumboelettronica.altervista.org jumboelettromania.altervista.org j...
- 02 Apr 2023 17:41
- Forum: mikroC PRO for PIC General
- Topic: How much is MPLAB and XC8
- Replies: 4
- Views: 873
Re: How much is MPLAB and XC8
I took the optimization to level '3' and got some benefits. The firmware is complete with the "programming" function and management of the DS1302 library. Memory Summary: Program space used 3C82h ( 15490) of 4000h bytes ( 94.5%) Data space used ABh ( 171) of 200h bytes ( 33.4%) Configuration bits us...
- 02 Apr 2023 16:26
- Forum: mikroC PRO for PIC General
- Topic: How much is MPLAB and XC8
- Replies: 4
- Views: 873
Re: How much is MPLAB and XC8
Thank you Acetronics for your reply. I'm not an "experienced programmer" even though I can count on my son as an "experienced programmer" (master's degree). Some time ago I tried to transfer a program from Mikroc pro to MPLAB for PIC16F1829, with Mikroc it takes about 2 KByte, with MPLAB the memory ...
- 01 Apr 2023 14:50
- Forum: mikroC PRO for PIC General
- Topic: How much is MPLAB and XC8
- Replies: 4
- Views: 873
How much is MPLAB and XC8
Since Mikroe doesn't update the IDE with new microcontrollers, we are forced to switch to Microchip's IDE. I tried to manage the PIC16 and PIC18 but if I complicate the firmware the compiler from memory overrun error. Can those of you who use it tell me how much the perpetual license costs, i.e. not...
- 17 Oct 2022 17:10
- Forum: mikroC PRO for PIC General
- Topic: pic 16(L)F18346 i can't program it using pickit 3.0 why? SOLVED
- Replies: 2
- Views: 713
Re: pic 16(L)F18346 i can't program it using pickit 3.0 why?
Replace the unzipped file with the one in the PicKit3 or PicKit2 folder.
- 15 Jan 2022 08:51
- Forum: mikroC PRO for PIC General
- Topic: Difference between compiler and programmer configurations
- Replies: 3
- Views: 710
Re: Difference between compiler and programmer configurations
RE3 exists with the MCLR function.
The programmer uses the configuration definitions of the 40 pins models but the affected bit is the same (CONFIG3H.CCP3MX).
Sorry for the non-translation.
The programmer uses the configuration definitions of the 40 pins models but the affected bit is the same (CONFIG3H.CCP3MX).
Sorry for the non-translation.
- 15 Jan 2022 08:50
- Forum: mikroC PRO for PIC General
- Topic: Difference between compiler and programmer configurations
- Replies: 3
- Views: 710
Re: Difference between compiler and programmer configurations
RE3 esiste con la funzione MCLR.
Il programmatore usa la definizione della configurazione dei modelli a 40 pin ma il bit interessato è lo stesso (CONFIG3H.CCP3MX).
Il programmatore usa la definizione della configurazione dei modelli a 40 pin ma il bit interessato è lo stesso (CONFIG3H.CCP3MX).
- 03 Jan 2022 16:18
- Forum: mikroC PRO for PIC General
- Topic: Help with 4x4 RGB Click on EasyPIC Pro V7a
- Replies: 17
- Views: 2544
Re: Help with 4x4 RGB Click on EasyPIC Pro V7a
Happy New Year to all, I propose a panel formed by 20x16 pixels WS8212B and PIC18F45K22 (64MHz). I attach the youtube address for a video on what I implemented at the time. I had thought of updating it with new effects but my wife disagrees with displaying the panel for fear of being criticized by p...
- 12 Dec 2021 10:21
- Forum: mikroC PRO for PIC General
- Topic: MikroC Pro falling behind
- Replies: 24
- Views: 4086
Re: MikroC Pro falling behind
If you want to program a micro you have to know the hardware, otherwise you can switch to the arduino. Personally I would pay for any update that incorporates the new PICs using the current development environment, switching to MPLABX is not as feasible as it seems, the generated firmware burns a lo...
- 02 Oct 2021 08:40
- Forum: mikroC PRO for PIC General
- Topic: spi flash memory
- Replies: 5
- Views: 1111
Re: spi flash memory
I'm sorry, I've never tried, I can't do it.
- 01 Oct 2021 09:04
- Forum: mikroC PRO for PIC General
- Topic: RS485
- Replies: 2
- Views: 608
Re: RS485
RS485 is a transport vehicle for industrial use. Generally one Byte is sent at a time with the logic used in RS232, that is a start bit, 8 data bits, and one or two stop bits.
The speed is limited by the length of the line, the number of nodes and the type of cable used.
The speed is limited by the length of the line, the number of nodes and the type of cable used.
- 28 Sep 2021 09:09
- Forum: mikroC PRO for PIC General
- Topic: spi flash memory
- Replies: 5
- Views: 1111
Re: spi flash memory
If you are satisfied, try the attached firmware.
Written for PIC16F1825 / 29, it uses the UART module for verification, for memory management it does not use hardware modules so it can be adapted to any micro.
Important: the SPI and Dual management works, the Quad one does not work yet.
Written for PIC16F1825 / 29, it uses the UART module for verification, for memory management it does not use hardware modules so it can be adapted to any micro.
Important: the SPI and Dual management works, the Quad one does not work yet.