Recent Changes - Search:
<^< Clock Settings | Course index | Introduction to E-blocks >^>

Introduction to Microcontroller Programming * Course Index * Introduction * About the Author * About this Course * Feedback * Course Navigation * Quick Course Navigation * How to use this Course * Acronyms Used and Course Conventions

About PICmicro Chips * What is a PICmicro? * Microcontrollers * Digital versus Analogue * Inputs and Outputs * Memory * Programming * 16F1937 Architecture

Clocking Your PICmicro Devices * Introduction * The Clock Circuit * Clock Settings *

Clock Confusion

E-Blocks * Introduction to E-blocks * Using E-blocks * E-blocks Boards

Flowcode Step By Step * Introduction to Flowcode * Basic Flowcode Functions * Digital Outputs * Digital Inputs * Basic Loops * The LCD Display * Binary Numbers * Decisions * Goto (Connection Point) * 7-Segment Displays * Software Macro * Strings and Memory * A Simple Hi-Fi

PICmicro Projects * Introduction to PICmicro Projects * Construction Methods * Choosing a Power Source * Adding Inputs * Input Conditioning * Adding Outputs * Adding Drivers

Labs * Introduction and Lesson Plan * 1. Output * 2. Delay * 3. Connection Point * 4. Calculations * 5. Loop * 6. Input * 7. Decision * 8. LCD * 9. Keypad * 10. Analogue + EEPROM * 11. Software Macro * 12. External Interrupt * 13. Timer Interrupt

(:Summary:Contains the 'action' links (like Browse, Edit, History, etc.), placed at the top of the page, see site page actions:) (:comment This page can be somewhat complex to figure out the first time you see it. Its contents are documented at PmWiki.SitePageActions if you need help. :) * Print (:comment (:if group Site,SiteAdmin,Cookbook,Profiles,PmWiki*:) (:comment delete if and ifend to enable backlinks:) * %item rel=nofollow class=backlinks accesskey='$[ak_backlinks]'% [[{*$Name}?action=search&q=link={*$FullName} | $[Backlinks] ]] (:ifend:) :) * Login

Clock Confusion

<^< Clock Settings | Course Index | Introduction to E-blocks >^>(:nl:)

You need to make clock option settings in two places: within Flowcode using Build > Project Options... > Configure and on your hardware.

This is an area for potential confusion: if you configure the PICmicro device for one kind of clock oscillator circuit, but connect a different external circuit, then your PICmicro device will not oscillate, and you will be lulled into thinking that your program does not work.

>>warning border='1px solid black'<<If your program does not work then the first thing you should do is check your clock settings on the hardware and within Flowcode. >><<

Here are some rules of thumb:

HP488 Development board users:

With the Oscillator Selection in PPP in HS (or XTAL on the simple configuration screen) then make sure that SW2 on the HP488 development board is switched into the XTAL position. With the Oscillator Selection in PPP in EXTRC as Clock Out (or RC on the simple configuration screen) then make sure that SW2 on the HP488 development board is switched into the RC position.

For more information on the HP488 board click here.

EB006 Multiprogrammer board users:

With the Oscillator Selection in PPP in HS (or XTAL on the simple configuration screen) then make sure that S2 on the EB006 Multiprogrammer board is switched into the XTAL position. With the Oscillator Selection in PPP in 'EXTRC as Clock Out' (or RC on the simple configuration screen) then make sure that S2 on the EB006 Multiprogrammer board is switched into the RC position.

For more information on the EB006 board click here.

Also: turn the Watchdog timer off.

Note that in RC mode you will also need to set the Fast/Slow switch but this is not dependant on any setting you make in PPP. (:nl:)(:table style="clear:both":)

(:Summary: Website page footer:)

Print - (:comment (:if group Site,SiteAdmin,Cookbook,Profiles,PmWiki*:) (:comment delete if and ifend to enable backlinks:) %item rel=nofollow class=backlinks accesskey='$[ak_backlinks]'% [[{*$Name}?action=search&q=link={*$FullName} | $[Backlinks] ]] (:ifend:) :) Search - Login

Page last modified on May 13, 2013, at 01:05 PM