Search found 2187 matches

by majenko
Sat Dec 03, 2011 1:13 pm
Forum: Libraries
Topic: analogWrite (PWM) issues
Replies: 7
Views: 7502

Re: analogWrite (PWM) issues

The proper way to deal with the PWM would be to only update the duty cycle when the timer triggers an interrupt to say it is at the end of the duty period. However, that's not how the chipKITâ„¢ implementation does it. For now you will have to insert a delay between successive calls. It doesn't make...
by majenko
Sat Dec 03, 2011 12:53 pm
Forum: Libraries
Topic: Cant compile sketches becourse libraries arent found
Replies: 3
Views: 1046

Re: Cant compile sketches becourse libraries arent found

In the mpide tree there are two libraries folders, each with a different function. \..mpide..\libraries This is used for ATMEL libraries. Libraries placed in here will work on the ATMEL based Arduinos, like the UNO, MEGA, etc. \..mpide..\hardware\pic32\libraries This is used for PIC32 based librarie...
by majenko
Mon Nov 21, 2011 12:31 am
Forum: Libraries
Topic: Using the onboard RTC on MAX32
Replies: 7
Views: 2351

Re: Using the onboard RTC on MAX32

I think the shield will be doing more that just providing the crystal. I think it has its own oscillator which provides a square wave at 32768Hz to the oscillator input of the PIC.

This is certainly doable.
by majenko
Sat Nov 19, 2011 1:00 pm
Forum: Libraries
Topic: Using the onboard RTC on MAX32
Replies: 7
Views: 2351

Re: Using the onboard RTC on MAX32

Yes, it would require some major reworking of the board to use the built-in RTCC. Not something I'd want to have a go at. You'd be much better off using an off-board RTC like the DS1306 ( http://www.maxim-ic.com/datasheet/index.mvp/id/2687 ) which communicates through SPI. I guess the onboard one ma...
by majenko
Thu Nov 10, 2011 12:38 am
Forum: Libraries
Topic: Real-Time Clock Library
Replies: 37
Views: 10232

Re: Real-Time Clock Library

Yes, I saw yours after I had written mine... Ho hum, never mind.

I haven't followed any "standards" as regards the interface to my library. Maybe the two could merge one day...? Who knows...?
by majenko
Wed Nov 09, 2011 8:24 pm
Forum: Libraries
Topic: Using the onboard RTC on MAX32
Replies: 7
Views: 2351

Re: Using the onboard RTC on MAX32

The oscillator would need to connect between pins 73 and 74 on the microcontroller.

The Max32 doesn't have provision to connect these pins to a crystal as they are in use as part of the IOL connector J14.
by majenko
Wed Nov 09, 2011 7:55 pm
Forum: Libraries
Topic: Real-Time Clock Library
Replies: 37
Views: 10232

Real-Time Clock Library

I have created a Real-Time Clock library for the Uno32. It's in beta at the moment, so please try it out and see what breaks. It supports all the functions of the RTCC module, including alarm interrupt, output pin control, etc. You will need to add a 32,768Hz crystal to the X2 footprint to the top-l...