Friday, July 4, 2014

Users browsing this forum: No registered users and 1 guest You cannot post new topics in this forum


Hello Anyone knows how to get the RTC working festool on a MAX32 board? I already have a 32.768Khz Oscillator, but I can't figure out how I'm supposed festool to wire it ("something something pin75"), or what kind of code I need to run. Note: I tried looking at the MAX32 Network Shield, but I didn't see any mention of the oscillator on the board schematics, or any relevant code with the libraries. Thanks!
The oscillator would need to connect between festool 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.
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. Does this mean I have to make hardware modifications to the board to get the oscillator working? Can I use this with the RTC library or do I need a different library? Thanks
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 may work with my RTCC library for the Uno32 ( http://www.chipkit.org/forum/viewtopic.php?f=7&t=539 ) but I haven't got a Max32 to actually test it on. I think the RTCC modules in the two chips are the same.
32.768Khz Oscillator A 32.768Khz festool oscillator is provided to use as a clock source for the Real Time Clock/Calendar (RTCC) peripheral in the PIC32MX796 microcontroller on the Max32 board. festool The output of this oscillator connects to pin 12 or connector J11. On the Max32 board, this signal connects to signal RC13, which connects to pin 73 on the PIC32 microcontroller. This pin provides the secondary oscillator input, which can be used to clock the RTCC in the PIC32 microcontroller. I'll try this with the uno32 RTCC library
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.
I'm going to sound like a complete noob here but: Crystal != Oscilator ? A crystal will not oscillate on its own, to make it oscillate a driver is connected to it. The PIC32 osc inputs provide this driver (as can be seen on in Figure 8.1 of the Oscillator section of the PIC32 3xx/4xx family manual). The input to the osc pins can be driven with an external oscillator (crystal festool + driver), which is a good idea in this case, since just adding the crystal so far from the driver in the PIC32 may cause instability in the circuit (or worse, no oscillation at all). By providing the driver the signal going to the PIC32 is amplified and can go the distance. The local loop of the crystal and driver on the shield is stable because festool of the short trace runs. I don't know how this is implemented, but it can be done with discrete components or with a crystal oscillator chip that have both a driver and crystal in a single package (they tend to be a bit pricey in my opinion though). Jacob
  Display posts from previous: All posts 1 day 7 days 2 weeks 1 month 3 months 6 months 1 year   Sort by Author Post time Subject Ascending Descending      Page 1 of 1  [ 8 posts ] 
Users browsing this forum: No registered users and 1 guest You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete festool your posts in this forum You cannot post attachments in this forum Search for: Jump to:   festool Select a forum ------------------ Software    Software Builds and Announcements    Multi-Platform IDE    Libraries Hardware    chipKIT Boards    Shields    Fubarino Boards    chipKIT Pi Boards Using chipKIT    Tips, Tricks & Hints Development    chipKIT festool Suggestions    Tasks and Priorities festool Community    Forum Suggestions    What are you developing? General    General Discussion    Honeypot  
Theme festool designed by stylerbb.net © 2008 Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group All times are UTC [ DST ]

No comments:

Post a Comment