Search found 235 matches
- 13 Jul 2023 08:00
- Forum: User Projects
- Topic: Nordic nRF24L01P - Working Code
- Replies: 1
- Views: 441
Nordic nRF24L01P - Working Code
Attached are three files that use the Nordic radio transceiver nRF24L01P. Its available as a 'nRF Click' and on the MikromediaPlus smart display. I've failed to get the Libstock example running but found a post by Allen Mulver in 2014 who wrote 90% of the code - Thanks. The three zipped files hold: ...
- 02 Jul 2023 00:43
- Forum: User Projects
- Topic: Magnetic Sensors Error Problem Solved
- Replies: 1
- Views: 461
Magnetic Sensors Error Problem Solved
Over the last few months I've spent time trying to construct a GPS/compass tool to lay-out paddock fencing. The problem has been the compass. I've tried: Click boards: Compass, Compass 2, Compass 4 and the very expensive HMC6343. Occasionally getting good results but mostly large errors of anything ...
- 08 Jun 2023 10:18
- Forum: mikroC PRO for PIC32 General
- Topic: Port Expander and MikroBUS
- Replies: 0
- Views: 441
Port Expander and MikroBUS
I'm using: 1. Mikromedia_Plus Smart Display. 2. Mikromedia+ Shield with the four mikro BUS sockets. And need some advice on using the Port Expander MCP23S17 that is on the smart display. To set up a click board I usually define the pin allocation with something like: sbit TTS_RDY at RE8_bit; sbit TT...
- 05 Jun 2023 22:28
- Forum: mikroC PRO for PIC32 General
- Topic: TFT displaying Images
- Replies: 3
- Views: 482
Re: TFT displaying Images
Sorry - I've just read your post in detail and noted that you have a problem with IMAGES. Download the free code from the Mikro Site: 'VTFT RES File Creator. It will take your image (jpeg bitmap etc) and create the necessay code to insert in your program. Although called VFTF it will 'stand alone.' ...
- 05 Jun 2023 22:23
- Forum: mikroC PRO for PIC32 General
- Topic: TFT displaying Images
- Replies: 3
- Views: 482
Re: TFT displaying Images
I'm far from expert but I've attached some code that uses a TFT on the EasyPICFusionV7 board. The MCU is PIC32Mx795F512L running at 80MHz. A few thoughts: 1. You do not need VTFT to run simple projects but it's a great help with more complicated work. However it's not easy sailing. 2. The demo code ...
- 31 May 2023 09:12
- Forum: mikroC PRO for PIC32 General
- Topic: Peripheral Bus and UART
- Replies: 2
- Views: 640
Re: Peripheral Bus and UART
No solution yet. The help notes about UARTxInit_Advanced says to use the frequency of the Peripheral Bus. However, to get it to work I have to use the MCU oscillator frequency. For example: Fosc = 80MHz, PB is set to divide by 8 so PB frequency is = 10,000kHz so the code should be: UART2_Init_Advanc...
- 30 May 2023 09:09
- Forum: mikroC PRO for PIC General
- Topic: MikroC Pro - Abandonware?
- Replies: 17
- Views: 1508
Re: MikroC Pro - Abandonware?
Again - thanks for your code. I've had a look at it in PMLABX and it's a very different kettle of fish to what I'm used to. I've only previously used it for some asm code learning years ago and VERY simple stuff since then. And in years gone by the ICD1 only worked in MPLABX before the 'IPE' softwar...
- 30 May 2023 07:49
- Forum: User Projects
- Topic: Timer 0 in 16 Bit Mode Working Code
- Replies: 1
- Views: 460
Timer 0 in 16 Bit Mode Working Code
Nothing special but using Timer 0 in 16 bit mode you need to: 1. When writing to Timer 0 registers you MUST write to TMR0H first then TMR0L 2. When reading from the registers you must read TMR0L first then TMR0H 3. Set the timer on by T0CON = 0b10000xxx; Where xxx is the prescale value, between 1:2 ...
- 27 May 2023 09:30
- Forum: mikroC PRO for PIC General
- Topic: MikroC Pro - Abandonware?
- Replies: 17
- Views: 1508
Re: MikroC Pro
hexreader - thanks very much.
Spent a day trying to get my ICD3 to talk to the latest MPLABX (6.10 I think).
Gave up and am using 5.9 and ordered anew PICkit4 programmer.
Regards Bill Legge in Australia
Spent a day trying to get my ICD3 to talk to the latest MPLABX (6.10 I think).
Gave up and am using 5.9 and ordered anew PICkit4 programmer.
Regards Bill Legge in Australia
- 24 May 2023 10:45
- Forum: mikroC PRO for PIC General
- Topic: MikroC Pro - Abandonware?
- Replies: 17
- Views: 1508
Re: MikroC Pro - Abandonware?
Interested in your switch to the Microchip compilers and using MPLABX. I'm interested in doing the same - my PIC32 post/query has gone unanswered for days and I think the Mikro Forum is dying slowly. I've had excellent help and advice form the Microchip forums (despite their number). Any chance you ...
- 22 May 2023 08:43
- Forum: mikroC PRO for PIC General
- Topic: MikroC Pro - Abandonware?
- Replies: 17
- Views: 1508
Re: MikroC Pro - Abandonware?
Hexreader I wondered where you had got too! Miss your assistance on the PIC32 Compiler forum. I think MikroElektronica have made a fortune on the idea of the microBUS format and products and well done to them! But it's meant less effort on the compilers. Best of luck with the Microchip/MPLABx and so...
- 18 May 2023 07:03
- Forum: User Projects
- Topic: Morse Code Transmitter and Receiver - Working Code
- Replies: 2
- Views: 893
Morse Code Transmitter and Receiver - Working Code
I'm old enough to have learnt morse code and thought it would be fun to use some of the latest electronics to send and receive something archaic. Both Tx and Rx use the EasyPicFusionv7 board with a PIC32MX795F512L MCU. The Tx uses a TFT display to show Words Per Minute (WPM), pulse lengths and so on...
- 08 May 2023 10:38
- Forum: mikroC PRO for PIC32 General
- Topic: Peripheral Bus and UART
- Replies: 2
- Views: 640
Peripheral Bus and UART
I need to set the peripheral bus to DIV8 and thus need to use UART2_Init_Advanced to get the correct BAUD rate. It does not work. My rig is: 1. PIC32MX795F512L with 8MHz Xtal on the carrier. 2. Config bits set so that Fosc is DIV2 TIMES 20 = 80MHz. 3. Edit project set so that PB is Fosc/8 = 10MHz = ...
- 14 Apr 2023 03:57
- Forum: mikroC PRO for PIC32 General
- Topic: PIC32 ADC Problem
- Replies: 5
- Views: 1056
Re: PIC32 ADC Problem
Filip - thanks for the suggestion. The code example works OK and my own code also does now! Nothing wrong with the compiler or hardware - just my poor coding. Unfortunately I failed to identify my error during the re-write. My project is to make and automated morse code transmitter and receiver. The...
- 11 Apr 2023 08:10
- Forum: mikroC PRO for PIC32 General
- Topic: PIC32 ADC Problem
- Replies: 5
- Views: 1056
Re: PIC32 ADC Problem
Many hours of fiddling with my code and ZERO progress! Re-wrote minimalist code and -all OK. 'Added' the rest of the code in small chunks - all OK. So, now I'm back to my original and it's all working. Certainly wasn't the oscillator settings as RS232 and TFT worked OK. All variables initialized. Un...