sample RTCC on MINI-32 doesn't led blinking

General discussion on mikroC PRO for PIC32.
Post Reply
Author
Message
he.pichon
Posts: 3
Joined: 04 Aug 2011 21:54

sample RTCC on MINI-32 doesn't led blinking

#1 Post by he.pichon » 04 Aug 2011 23:22

Hello ,

I try to use the Mini-32 board with samples

sample Led blinking is running correctly I modified the time Wait

but sample RTCC doesn't work , on the Mini-32 bootloader with PIC32MX534F064H
- reset
- connect
- Browse the file RTCC.hex (unchanged after loading mini32_examples.zip )
- begin uploading
- restarting the MCU button OK

the led LATD6_bit doesn't blinking

I don't see my error , thank for your help

Regards

Helmut
Posts: 252
Joined: 02 Aug 2006 12:58
Location: Flensburg Germany

Re: sample RTCC on MINI-32 doesn't led blinking

#2 Post by Helmut » 05 Aug 2011 17:14

I know of nobody who has received the RTCC to work successfully.

It has been mentioned here several times.

A support ticket is too much, me, but when so many user had problems, then it should remain the Mikroeteam?

Best regards,
Helmut

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: sample RTCC on MINI-32 doesn't led blinking

#3 Post by filip » 08 Aug 2011 12:43

Hi,
Initially, the Secondary Oscillator which is used for internal RTCC module is disabled by the pre-programmed bootloader (v1.100 and lower).
To overcome this issue, we have made a simple HEX file which must be uploaded prior to uploading the RTCC example and which enables Secondary Oscillator usage.

The procedure is following :
1. Connect to the bootloader,
2. Load the Enable_Sec_Osc_P32MX534F064H.hex in the bootloader application,
3 Upload this HEX by pressing Begin Uploading button.

After the HEX has been uploaded, wait 10 seconds until the code in the HEX is executed.
Then, using the same method upload the RTCC example.

Important : The Enable_Sec_Osc_P32MX534F064H.hex needs to be uploaded only once, prior to RTCC example upload.
After that Secondary Oscillator will remain enabled in bootloader firmware.

You must enable Secondary Oscillator from your code as well.
Place the following code in your RTCC example before enabling RTCC module:

Code: Select all

  
  // enable secondary oscillator
  SOSCEN_bit = 1;
  while(!SOSCRDY_bit) // wait for secondary oscillator to stabilize
    ;
We will update bootloader firmware to include this configuration word change.
Secondary Oscillator will be enabled by default, so for bootloader versions v1.2 or higher,
you will not need to preform this update.
Attachments
Enable_Sec_Osc_P32MX534F064H.rar
(985 Bytes) Downloaded 282 times

he.pichon
Posts: 3
Joined: 04 Aug 2011 21:54

Re: sample RTCC on MINI-32 doesn't led blinking

#4 Post by he.pichon » 08 Aug 2011 13:48

Hi ,

I tested with succes , now the led is blinking ..... Super !

your help have been very appreciate , now i use RTCC ( before i used timer1 interrupt to build a clock : reference time )

The mini-32 PIC32MX534F064H is very interesting , i tested on EASYPic5 with Lcd(LCD Adapter Board)PortD + Ethernet2( ENC624J600 )PortC

MikroElectronika i do a very good Job

I see also that the boot loader use 16Kbytes , In fact stay (64 - 16) Kbytes to the program , to solved this the MicroProg I will be the good way

boot loader is not complex to use very good tool.

I continue to discover PIC32


Merci beaucoup
Herve

louis, netherlands
Posts: 29
Joined: 23 Feb 2009 22:58

Re: sample RTCC on MINI-32 doesn't led blinking

#5 Post by louis, netherlands » 02 Dec 2011 12:31

Hi he.pichon,
I tested on EASYPic5 with Lcd(LCD Adapter Board)PortD + Ethernet2( ENC624J600 )Port
How did you do that ?
Because the mini-32 has 3.3Volt supply on pin 11 and pin 32.
The EasyPic5 has 5 Volt on these pins as a supply voltage.
And the maximum ratings for the PIC-processor are 4 Volt.
Please tell us how, so all the mini-32 users can extend their testing facilities.

And for the MikroElektronica guys, the new EasyPic7 can do 3.3Volt, so it can handle the mini-32 as well, exept programming, am I correct ?

louis

he.pichon
Posts: 3
Joined: 04 Aug 2011 21:54

Re: sample RTCC on MINI-32 doesn't led blinking

#6 Post by he.pichon » 03 Dec 2011 11:46

It's a good question :

In first time i used power of Easy pic5 ,despite the constraints 3.3 ( some pin are up to 5V tolerant )

the chip manage correctly ETHERNET 2 and LCD on RD0 no problem

now i think the good way it close the power of Easy pic5 and use only the power from USB ( 3.3V via pads or 5V via USB )


best regards
herve

louis, netherlands
Posts: 29
Joined: 23 Feb 2009 22:58

Re: sample RTCC on MINI-32 doesn't led blinking

#7 Post by louis, netherlands » 07 Dec 2011 13:00

I have my information from the PIC32MX5XX/6XX/7XX Family Data Sheet document

About the I/O-pins, some of them are 5 Volt tolerant, not all, see page 7.
About the supply voltage, the documentation (page 183) says clearly about the Maximum Rating for VDD is +4.0Volt
So you must be a lucky man ...

My suggestion is:
Isolate both the 3.3Volt pins of the mini-32, now you can use the 5Volt on the board and all the test-hardware
I have bought a extra mini-32 for test purpose only, and with this one I have removed the 3.3Volt pins
During test the mini-32 receives its power from the mini-USB, the board is powered by external power supply
Be carefull in what I/O you use, only half of it is 5 Volt tolerant
And remember, the port-name/pins are different between the mini-32 and EasyPic board

Post Reply

Return to “mikroC PRO for PIC32 General”