S12ZVL-TIM-FrequencyMeasurement-V1_0-CW106-TIC-EXAMPLE

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S12ZVL-TIM-FrequencyMeasurement-V1_0-CW106-TIC-EXAMPLE

S12ZVL-TIM-FrequencyMeasurement-V1_0-CW106-TIC-EXAMPLE

 *******************************************************************************
 * File              main.c
 * Owner             LaMa-TIC-RPR
 * Version           1.1
 * Date              Jun/17/2016
 * Classification    General Business Information
 * Brief             S12Z Frequency Measurement at PT0 (IOC0_0) by TIM module
 *                   in input capture mode
 *******************************************************************************
 * Detailed Description:
 * The code measures frequency at PT0
 * It demonstrates
 * - It measures frequency at PT0 by means of TIM module IOC0_0.
 * - The measurement is sensitive on rising edges so duty cycle has no affect
 *   to the measurement
 * - Constants:
 *           BUSCLOCK
 *           MAX_OVERFLOWS
 *           TIMER_PRESCALLER
 *      must be defined
 * - MAX_OVERFLOWS determines minimum measurable frequency.
 *   It is max. allowed number of overflows. When overflows counter reaches
 *   this value it the flag FREQUENCY_TOO_LOW is set. The message
 *   PERIOD BETWEEN TWO EDGES IS TO WIDE is then written to a variable "str"
 *   This value gives time interval:
 *     T = TIMER_PRESCALER * MAX_OVERFLOWS * 65536 / BUSCLOCK    
 *     For example:
 *      - TIMER_PRESCALER = 1
 *      - MAX_OVERFLOWS   = 1000
 *      - BUSCLOCK        = 16,000,000Hz
 *      T = 1 * 1000 * 65536 / 16,000,000 = 4,096s  => f=0,244140625Hz
 * - TIMER_PRESCALER = { 1,2,4,8,16,32,64,128} - smaller values give more
 *   precise values but it generates timer overflow more frequently
 * - the physical representation of the measured frequency is stored in the
 *   string "str"
 *
 * - The measurement precision is df which can be expressed as:
 *
 *    df = BUSCLK / ((n^2 + n) * PRESCALER); n = measured number of TCNT periods
 *             
 *   For example: BUSCLK = 16MHz, n = 399, PRESCALER = 1
 *   
 *   
 *             df = 16,000,000 / ((399^2 + 399) * 1) = 100.25Hz
 *             
 *             so, count 399 means f=BUSCL/399=16,000,000/399 = 40,100.25Hz
 *             so, count 400 means f=BUSCL/400=16,000,000/399 = 40,000.00Hz
 *                 
 * So this method is not suitable for large frequencies as can be seen in
 * following table (percentual error we can get is df/f):
 * n   f[Hz]      df[Hz]                        n   f[Hz] df[Hz]
 * 1   8000000   5333333,3           101 1553,0 30,1
 * 2   2666666,6 1333333,3           102 1522,9 29,2
 * 3   1333333,3  533333,3           103 1493,6 28,4
 * 4    800000    266666,6             104 1465,2 27,6
 * 5    533333,3  152380,9            105 1437,5 26,8
 * 6    380952,3   95238,0             106 1410,6 26,1
 * 7    285714,2   63492,0             107 1384,5 25,4
 * 8    222222,2   44444,4             108 1359,1 24,7
 * 9    177777,7   32323,2             109 1334,4 24,0
 * 10   145454,5   24242,4            110 1310,4 23,4
 * 11   121212,1   18648,0            111 1287,0 22,7
 * 12   102564,1   14652,0            112 1264,2 22,1
 * 13    87912,0   11721,6             113 1242,0 21,6
 * 14    76190,4    9523,8             114 1220,4 21,0
 * 15    66666,6    7843,1             115 1199,40,502
 * 16    58823,5    6535,9             116 1178,8 19,9
 * 17    52287,5    5503,9             117 1158,9 19,4
 * 18    46783,6    4678,3             118 1139,4 18,9
 * 19    42105,2    4010,0             119 1120,4 18,5
 * 20    38095,2    3463,2             120 1101,9 18,0
 * 21    34632,0    3011,4             121 1083,8 17,6
 * 22    31620,5    2635,0             122 1066,2 17,1
 * 23    28985,5    2318,8             123 1049,0 16,7
 * 24    26666,6    2051,2             124 1032,2 16,3
 * 25    24615,3    1823,3             125 1015,8 15,9
 *
 * - PCB setup:
 *   - J35 is disconnected because measurement is done on PT0
 *   - pulse generator is connected to the J35 pin 1. (PT0)
 *  
 * - Reference to documentation: MC9S12ZVLMR1.pdf Rev. 1.02
 * - Tested on TRK-S12ZVL
 * - MCU MC9S12ZVL32 0N22G
 * - OSCCLK = 4MHz
 * - BUSCLK = 16MHz (set by PLL)
 *
 * The info about frequency and count is transmitted over the SCI0 Tx which is
 * routed (MODRR) to PS1 pin
 *
 *******************************************************************************
 Revision History:
 Version Date          Author            Description of Changes
 1.0     Jun/17/2016   LaMa-TIC-RPR      Initial version
 ******************************************************************************/

Labels (1)
Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1103745%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES12ZVL-TIM-FrequencyMeasurement-V1_0-CW106-TIC-EXAMPLE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1103745%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%26nbsp%3B*******************************************************************************%3CBR%20%2F%3E%26nbsp%3B*%20File%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20main.c%3CBR%20%2F%3E%26nbsp%3B*%20Owner%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20LaMa-TIC-RPR%3CBR%20%2F%3E%26nbsp%3B*%20Version%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201.1%3CBR%20%2F%3E%26nbsp%3B*%20Date%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Jun%2F17%2F2016%3CBR%20%2F%3E%26nbsp%3B*%20Classification%26nbsp%3B%26nbsp%3B%26nbsp%3B%20General%20Business%20Information%3CBR%20%2F%3E%26nbsp%3B*%20Brief%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20S12Z%20Frequency%20Measurement%20at%20PT0%20(IOC0_0)%20by%20TIM%20module%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20in%20input%20capture%20mode%3CBR%20%2F%3E%26nbsp%3B*******************************************************************************%3CBR%20%2F%3E%26nbsp%3B*%20Detailed%20Description%3A%20%3CBR%20%2F%3E%26nbsp%3B*%20The%20code%20measures%20frequency%20at%20PT0%20%3CBR%20%2F%3E%26nbsp%3B*%20It%20demonstrates%3CBR%20%2F%3E%26nbsp%3B*%20-%20It%20measures%20frequency%20at%20PT0%20by%20means%20of%20TIM%20module%20IOC0_0.%3CBR%20%2F%3E%26nbsp%3B*%20-%20The%20measurement%20is%20sensitive%20on%20rising%20edges%20so%20duty%20cycle%20has%20no%20affect%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%20to%20the%20measurement%3CBR%20%2F%3E%26nbsp%3B*%20-%20Constants%3A%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20BUSCLOCK%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20MAX_OVERFLOWS%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20TIMER_PRESCALLER%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20must%20be%20defined%3CBR%20%2F%3E%26nbsp%3B*%20-%20MAX_OVERFLOWS%20determines%20minimum%20measurable%20frequency.%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%20It%20is%20max.%20allowed%20number%20of%20overflows.%20When%20overflows%20counter%20reaches%20%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%20this%20value%20it%20the%20flag%20FREQUENCY_TOO_LOW%20is%20set.%20The%20message%20%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%20PERIOD%20BETWEEN%20TWO%20EDGES%20IS%20TO%20WIDE%20is%20then%20written%20to%20a%20variable%20%22str%22%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%20This%20value%20gives%20time%20interval%3A%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20T%20%3D%20TIMER_PRESCALER%20*%20MAX_OVERFLOWS%20*%2065536%20%2F%20BUSCLOCK%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20For%20example%3A%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20-%20TIMER_PRESCALER%20%3D%201%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20-%20MAX_OVERFLOWS%26nbsp%3B%26nbsp%3B%20%3D%201000%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20-%20BUSCLOCK%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3D%2016%2C000%2C000Hz%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20T%20%3D%201%20*%201000%20*%2065536%20%2F%2016%2C000%2C000%20%3D%204%2C096s%26nbsp%3B%20%3D%26gt%3B%20f%3D0%2C244140625Hz%3CBR%20%2F%3E%26nbsp%3B*%20-%20TIMER_PRESCALER%20%3D%20%7B%201%2C2%2C4%2C8%2C16%2C32%2C64%2C128%7D%20-%20smaller%20values%20give%20more%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%20precise%20values%20but%20it%20generates%20timer%20overflow%20more%20frequently%3CBR%20%2F%3E%26nbsp%3B*%20-%20the%20physical%20representation%20of%20the%20measured%20frequency%20is%20stored%20in%20the%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%20string%20%22str%22%3CBR%20%2F%3E%26nbsp%3B*%3CBR%20%2F%3E%26nbsp%3B*%20-%20The%20measurement%20precision%20is%20df%20which%20can%20be%20expressed%20as%3A%3CBR%20%2F%3E%26nbsp%3B*%20%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%26nbsp%3B%20df%20%3D%20BUSCLK%20%2F%20((n%5E2%20%2B%20n)%20*%20PRESCALER)%3B%20n%20%3D%20measured%20number%20of%20TCNT%20periods%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%20For%20example%3A%20BUSCLK%20%3D%2016MHz%2C%20n%20%3D%20399%2C%20PRESCALER%20%3D%201%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%20%26nbsp%3B%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%20%26nbsp%3B%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20df%20%3D%2016%2C000%2C000%20%2F%20((399%5E2%20%2B%20399)%20*%201)%20%3D%20100.25Hz%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20so%2C%20count%20399%20means%20f%3DBUSCL%2F399%3D16%2C000%2C000%2F399%20%3D%2040%2C100.25Hz%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20so%2C%20count%20400%20means%20f%3DBUSCL%2F400%3D16%2C000%2C000%2F399%20%3D%2040%2C000.00Hz%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%3CBR%20%2F%3E%26nbsp%3B*%20So%20this%20method%20is%20not%20suitable%20for%20large%20frequencies%20as%20can%20be%20seen%20in%20%3CBR%20%2F%3E%26nbsp%3B*%20following%20table%20(percentual%20error%20we%20can%20get%20is%20df%2Ff)%3A%3CBR%20%2F%3E%26nbsp%3B*%20n%26nbsp%3B%26nbsp%3B%20f%5BHz%5D%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20df%5BHz%5D%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20n%26nbsp%3B%26nbsp%3B%20f%5BHz%5D%20df%5BHz%5D%3CBR%20%2F%3E%26nbsp%3B*%201%26nbsp%3B%26nbsp%3B%208000000%26nbsp%3B%26nbsp%3B%205333333%2C3%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B101%201553%2C0%2030%2C1%3CBR%20%2F%3E%26nbsp%3B*%202%26nbsp%3B%26nbsp%3B%202666666%2C6%201333333%2C3%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B102%201522%2C9%2029%2C2%3CBR%20%2F%3E%26nbsp%3B*%203%26nbsp%3B%26nbsp%3B%201333333%2C3%26nbsp%3B%20533333%2C3%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B103%201493%2C6%2028%2C4%3CBR%20%2F%3E%26nbsp%3B*%204%26nbsp%3B%26nbsp%3B%26nbsp%3B%20800000%26nbsp%3B%26nbsp%3B%26nbsp%3B%20266666%2C6%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20104%201465%2C2%2027%2C6%3CBR%20%2F%3E%26nbsp%3B*%205%26nbsp%3B%26nbsp%3B%26nbsp%3B%20533333%2C3%26nbsp%3B%20152380%2C9%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20105%201437%2C5%2026%2C8%3CBR%20%2F%3E%26nbsp%3B*%206%26nbsp%3B%26nbsp%3B%26nbsp%3B%20380952%2C3%26nbsp%3B%26nbsp%3B%2095238%2C0%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20106%201410%2C6%2026%2C1%3CBR%20%2F%3E%26nbsp%3B*%207%26nbsp%3B%26nbsp%3B%26nbsp%3B%20285714%2C2%26nbsp%3B%26nbsp%3B%2063492%2C0%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20107%201384%2C5%2025%2C4%3CBR%20%2F%3E%26nbsp%3B*%208%26nbsp%3B%26nbsp%3B%26nbsp%3B%20222222%2C2%26nbsp%3B%26nbsp%3B%2044444%2C4%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20108%201359%2C1%2024%2C7%3CBR%20%2F%3E%26nbsp%3B*%209%26nbsp%3B%26nbsp%3B%26nbsp%3B%20177777%2C7%26nbsp%3B%26nbsp%3B%2032323%2C2%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20109%201334%2C4%2024%2C0%3CBR%20%2F%3E%26nbsp%3B*%2010%26nbsp%3B%26nbsp%3B%20145454%2C5%26nbsp%3B%26nbsp%3B%2024242%2C4%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20110%201310%2C4%2023%2C4%3CBR%20%2F%3E%26nbsp%3B*%2011%26nbsp%3B%26nbsp%3B%20121212%2C1%26nbsp%3B%26nbsp%3B%2018648%2C0%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20111%201287%2C0%2022%2C7%3CBR%20%2F%3E%26nbsp%3B*%2012%26nbsp%3B%26nbsp%3B%20102564%2C1%26nbsp%3B%26nbsp%3B%2014652%2C0%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20112%201264%2C2%2022%2C1%3CBR%20%2F%3E%26nbsp%3B*%2013%26nbsp%3B%26nbsp%3B%26nbsp%3B%2087912%2C0%26nbsp%3B%26nbsp%3B%2011721%2C6%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20113%201242%2C0%2021%2C6%3CBR%20%2F%3E%26nbsp%3B*%2014%26nbsp%3B%26nbsp%3B%26nbsp%3B%2076190%2C4%26nbsp%3B%26nbsp%3B%26nbsp%3B%209523%2C8%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20114%201220%2C4%2021%2C0%3CBR%20%2F%3E%26nbsp%3B*%2015%26nbsp%3B%26nbsp%3B%26nbsp%3B%2066666%2C6%26nbsp%3B%26nbsp%3B%26nbsp%3B%207843%2C1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20115%201199%2C40%2C502%3CBR%20%2F%3E%26nbsp%3B*%2016%26nbsp%3B%26nbsp%3B%26nbsp%3B%2058823%2C5%26nbsp%3B%26nbsp%3B%26nbsp%3B%206535%2C9%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20116%201178%2C8%2019%2C9%3CBR%20%2F%3E%26nbsp%3B*%2017%26nbsp%3B%26nbsp%3B%26nbsp%3B%2052287%2C5%26nbsp%3B%26nbsp%3B%26nbsp%3B%205503%2C9%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20117%201158%2C9%2019%2C4%3CBR%20%2F%3E%26nbsp%3B*%2018%26nbsp%3B%26nbsp%3B%26nbsp%3B%2046783%2C6%26nbsp%3B%26nbsp%3B%26nbsp%3B%204678%2C3%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20118%201139%2C4%2018%2C9%3CBR%20%2F%3E%26nbsp%3B*%2019%26nbsp%3B%26nbsp%3B%26nbsp%3B%2042105%2C2%26nbsp%3B%26nbsp%3B%26nbsp%3B%204010%2C0%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20119%201120%2C4%2018%2C5%3CBR%20%2F%3E%26nbsp%3B*%2020%26nbsp%3B%26nbsp%3B%26nbsp%3B%2038095%2C2%26nbsp%3B%26nbsp%3B%26nbsp%3B%203463%2C2%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20120%201101%2C9%2018%2C0%3CBR%20%2F%3E%26nbsp%3B*%2021%26nbsp%3B%26nbsp%3B%26nbsp%3B%2034632%2C0%26nbsp%3B%26nbsp%3B%26nbsp%3B%203011%2C4%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20121%201083%2C8%2017%2C6%3CBR%20%2F%3E%26nbsp%3B*%2022%26nbsp%3B%26nbsp%3B%26nbsp%3B%2031620%2C5%26nbsp%3B%26nbsp%3B%26nbsp%3B%202635%2C0%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20122%201066%2C2%2017%2C1%3CBR%20%2F%3E%26nbsp%3B*%2023%26nbsp%3B%26nbsp%3B%26nbsp%3B%2028985%2C5%26nbsp%3B%26nbsp%3B%26nbsp%3B%202318%2C8%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20123%201049%2C0%2016%2C7%3CBR%20%2F%3E%26nbsp%3B*%2024%26nbsp%3B%26nbsp%3B%26nbsp%3B%2026666%2C6%26nbsp%3B%26nbsp%3B%26nbsp%3B%202051%2C2%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20124%201032%2C2%2016%2C3%3CBR%20%2F%3E%26nbsp%3B*%2025%26nbsp%3B%26nbsp%3B%26nbsp%3B%2024615%2C3%26nbsp%3B%26nbsp%3B%26nbsp%3B%201823%2C3%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20125%201015%2C8%2015%2C9%3CBR%20%2F%3E%26nbsp%3B*%20%3CBR%20%2F%3E%26nbsp%3B*%20-%20PCB%20setup%3A%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%20-%20J35%20is%20disconnected%20because%20measurement%20is%20done%20on%20PT0%3CBR%20%2F%3E%26nbsp%3B*%26nbsp%3B%26nbsp%3B%20-%20pulse%20generator%20is%20connected%20to%20the%20J35%20pin%201.%20(PT0)%3CBR%20%2F%3E%26nbsp%3B*%20%26nbsp%3B%3CBR%20%2F%3E%26nbsp%3B*%20-%20Reference%20to%20documentation%3A%20MC9S12ZVLMR1.pdf%20Rev.%201.02%3CBR%20%2F%3E%26nbsp%3B*%20-%20Tested%20on%20TRK-S12ZVL%3CBR%20%2F%3E%26nbsp%3B*%20-%20MCU%20MC9S12ZVL32%200N22G%3CBR%20%2F%3E%26nbsp%3B*%20-%20OSCCLK%20%3D%204MHz%20%3CBR%20%2F%3E%26nbsp%3B*%20-%20BUSCLK%20%3D%2016MHz%20(set%20by%20PLL)%20%3CBR%20%2F%3E%26nbsp%3B*%20%3CBR%20%2F%3E%26nbsp%3B*%20The%20info%20about%20frequency%20and%20count%20is%20transmitted%20over%20the%20SCI0%20Tx%20which%20is%20%3CBR%20%2F%3E%26nbsp%3B*%20routed%20(MODRR)%20to%20PS1%20pin%3CBR%20%2F%3E%26nbsp%3B*%20%3CBR%20%2F%3E%26nbsp%3B*******************************************************************************%3CBR%20%2F%3E%26nbsp%3BRevision%20History%3A%3CBR%20%2F%3E%26nbsp%3BVersion%20Date%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Author%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Description%20of%20Changes%3CBR%20%2F%3E%26nbsp%3B1.0%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Jun%2F17%2F2016%26nbsp%3B%26nbsp%3B%20LaMa-TIC-RPR%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Initial%20version%3CBR%20%2F%3E%26nbsp%3B******************************************************************************%2F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1103745%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EGeneral%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
No ratings
Version history
Last update:
‎09-06-2016 04:07 AM
Updated by: