10000000 ,"xtal_freq" => 32768 ,"MODCK_12" => 3 ,"HRCW_EBDF" => 0 ,"processor_freq_rating" => 50000000 ,"PLPRCR_MF" => 4 ,"operation_not_powerup" => 1 ,"SCCR_DFSYNC" => 0 ,"SCCR_DFBRG" => 0 ,"SCCR_DFNL" => 0 ,"SCCR_DFNH" => 0 ,"PLPRCR_CSRC" => 0 ,"SCCR_EBDF" => 0 ,"SCCR_TBS" => 1 ,"timebase_clock_t_bits" => 32 ,"timebase_clock_t_period" => 5.000000000000e-01 ,"dec_period_nominal" => 1.000000000000e+01 ,"SCCR_RTSEL" => 1 ,"SCCR_RTDIV" => 0 ,"RTCSC_38K" => 0 ,"rtc_clock_t_bits" => 32 ,"rtc_clock_t_period" => 5.000000000000e-01 ,"pit_period_nominal" => 1.000000000000e+01 ,"watchdog_period_nominal" => 200 ,"watchdog_period_margin" => 5 ,"bmt_period_nominal" => 10000 ,"CLK2" => 1000000 ,"CLK4" => 32000000 ,"DPLL_min_freq" => 30000 ,"DPLL_max_freq" => 50000 ,"GSMR_L_xDCR" => 3 ,"SPI_min_freq" => 1000000 ,"SPI_max_freq" => 4000000 ,"SPI_forced_DIV16" => 0 ,"I2C_min_freq" => 10000 ,"I2C_max_freq" => 1000000 ,"I2MOD_FLT" => 0 ,"BR0_MS" => 0 ,"BR1_MS" => 2 ,"BR2_MS" => 3 ,"BR3_MS" => 0 ,"BR4_MS" => 0 ,"BR5_MS" => 0 ,"BR6_MS" => 0 ,"BR7_MS" => 0 ,"MPTPR_PTP" => 0 ,"refresh_UPMA" => 5 ,"refresh_UPMB" => 200 ,"MAMR_PTA" => 4 ,"MBMR_PTB" => 255 ,"TINx" => 200000 ,"TMRx16_ICLK" => 2 ,"TMRx16_PS" => 255 ,"TMRx16_FRR" => 1 ,"TRRx16_ref" => 500 ,"TMRx16_OM" => 0 ,"TMRx32_ICLK" => 3 ,"TMRx32_PS" => 255 ,"TMRx32_FRR" => 1 ,"TRRx32_ref" => 20000000 ,"TMRx32_OM" => 0 ,"RCCR_TIMEP" => 0 ,"RISCT_period_nominal" => 500 ,"TM_CMD" => 30000 ,"TM_CMD_even" => 4 ,"TM_CMD_odd" => 20 ); if (!is_null($_COOKIE["clock_mpc8xx_8BEE6B5E95DAC66E40B3"])) { $cc=$_COOKIE["clock_mpc8xx_8BEE6B5E95DAC66E40B3"]; setcookie("clock_mpc8xx_8BEE6B5E95DAC66E40B3","",time()-86400); $c=unserialize(base64_decode($cc)); if (!is_null($c["osc_freq"])&&($c["osc_freq"]>=0)&&($c["osc_freq"]<=400000000)) { $v["osc_freq"]=$c["osc_freq"]; } if (!is_null($c["xtal_freq"])&&($c["xtal_freq"]>=0)&&($c["xtal_freq"]<=400000000)) { $v["xtal_freq"]=$c["xtal_freq"]; } if (!is_null($c["MODCK_12"])&&($c["MODCK_12"]>=0)&&($c["MODCK_12"]<=3)) { $v["MODCK_12"]=$c["MODCK_12"]; } if (!is_null($c["HRCW_EBDF"])&&($c["HRCW_EBDF"]>=0)&&($c["HRCW_EBDF"]<=1)) { $v["HRCW_EBDF"]=$c["HRCW_EBDF"]; } if (!is_null($c["processor_freq_rating"])&&($c["processor_freq_rating"]>=50000000)&&($c["processor_freq_rating"]<=400000000)) { $v["processor_freq_rating"]=$c["processor_freq_rating"]; } if (!is_null($c["PLPRCR_MF"])&&($c["PLPRCR_MF"]>=0)&&($c["PLPRCR_MF"]<=4095)) { $v["PLPRCR_MF"]=$c["PLPRCR_MF"]; } if (!is_null($c["operation_not_powerup"])&&($c["operation_not_powerup"]>=0)&&($c["operation_not_powerup"]<=1)) { $v["operation_not_powerup"]=$c["operation_not_powerup"]; } if (!is_null($c["SCCR_DFSYNC"])&&($c["SCCR_DFSYNC"]>=0)&&($c["SCCR_DFSYNC"]<=3)) { $v["SCCR_DFSYNC"]=$c["SCCR_DFSYNC"]; } if (!is_null($c["SCCR_DFBRG"])&&($c["SCCR_DFBRG"]>=0)&&($c["SCCR_DFBRG"]<=3)) { $v["SCCR_DFBRG"]=$c["SCCR_DFBRG"]; } if (!is_null($c["SCCR_DFNL"])&&($c["SCCR_DFNL"]>=0)&&($c["SCCR_DFNL"]<=7)) { $v["SCCR_DFNL"]=$c["SCCR_DFNL"]; } if (!is_null($c["SCCR_DFNH"])&&($c["SCCR_DFNH"]>=0)&&($c["SCCR_DFNH"]<=7)) { $v["SCCR_DFNH"]=$c["SCCR_DFNH"]; } if (!is_null($c["PLPRCR_CSRC"])&&($c["PLPRCR_CSRC"]>=0)&&($c["PLPRCR_CSRC"]<=1)) { $v["PLPRCR_CSRC"]=$c["PLPRCR_CSRC"]; } if (!is_null($c["SCCR_EBDF"])&&($c["SCCR_EBDF"]>=0)&&($c["SCCR_EBDF"]<=3)) { $v["SCCR_EBDF"]=$c["SCCR_EBDF"]; } if (!is_null($c["SCCR_TBS"])&&($c["SCCR_TBS"]>=0)&&($c["SCCR_TBS"]<=1)) { $v["SCCR_TBS"]=$c["SCCR_TBS"]; } if (!is_null($c["timebase_clock_t_bits"])&&($c["timebase_clock_t_bits"]>=15)&&($c["timebase_clock_t_bits"]<=64)) { $v["timebase_clock_t_bits"]=$c["timebase_clock_t_bits"]; } if (!is_null($c["timebase_clock_t_period"])&&($c["timebase_clock_t_period"]>=1.000000000000e-03)&&($c["timebase_clock_t_period"]<=1.461000000000e+04)) { $v["timebase_clock_t_period"]=$c["timebase_clock_t_period"]; } if (!is_null($c["dec_period_nominal"])&&($c["dec_period_nominal"]>=1.000000000000e-02)&&($c["dec_period_nominal"]<=5.000000000000e+02)) { $v["dec_period_nominal"]=$c["dec_period_nominal"]; } if (!is_null($c["SCCR_RTSEL"])&&($c["SCCR_RTSEL"]>=0)&&($c["SCCR_RTSEL"]<=1)) { $v["SCCR_RTSEL"]=$c["SCCR_RTSEL"]; } if (!is_null($c["SCCR_RTDIV"])&&($c["SCCR_RTDIV"]>=0)&&($c["SCCR_RTDIV"]<=1)) { $v["SCCR_RTDIV"]=$c["SCCR_RTDIV"]; } if (!is_null($c["RTCSC_38K"])&&($c["RTCSC_38K"]>=0)&&($c["RTCSC_38K"]<=1)) { $v["RTCSC_38K"]=$c["RTCSC_38K"]; } if (!is_null($c["rtc_clock_t_bits"])&&($c["rtc_clock_t_bits"]>=15)&&($c["rtc_clock_t_bits"]<=64)) { $v["rtc_clock_t_bits"]=$c["rtc_clock_t_bits"]; } if (!is_null($c["rtc_clock_t_period"])&&($c["rtc_clock_t_period"]>=1.000000000000e-03)&&($c["rtc_clock_t_period"]<=1.461000000000e+04)) { $v["rtc_clock_t_period"]=$c["rtc_clock_t_period"]; } if (!is_null($c["pit_period_nominal"])&&($c["pit_period_nominal"]>=1.000000000000e-02)&&($c["pit_period_nominal"]<=5.000000000000e+02)) { $v["pit_period_nominal"]=$c["pit_period_nominal"]; } if (!is_null($c["watchdog_period_nominal"])&&($c["watchdog_period_nominal"]>=1)&&($c["watchdog_period_nominal"]<=1000)) { $v["watchdog_period_nominal"]=$c["watchdog_period_nominal"]; } if (!is_null($c["watchdog_period_margin"])&&($c["watchdog_period_margin"]>=1)&&($c["watchdog_period_margin"]<=10)) { $v["watchdog_period_margin"]=$c["watchdog_period_margin"]; } if (!is_null($c["bmt_period_nominal"])&&($c["bmt_period_nominal"]>=100)&&($c["bmt_period_nominal"]<=100000)) { $v["bmt_period_nominal"]=$c["bmt_period_nominal"]; } if (!is_null($c["CLK2"])&&($c["CLK2"]>=0)&&($c["CLK2"]<=400000000)) { $v["CLK2"]=$c["CLK2"]; } if (!is_null($c["CLK4"])&&($c["CLK4"]>=0)&&($c["CLK4"]<=400000000)) { $v["CLK4"]=$c["CLK4"]; } if (!is_null($c["DPLL_min_freq"])&&($c["DPLL_min_freq"]>=0)&&($c["DPLL_min_freq"]<=400000000)) { $v["DPLL_min_freq"]=$c["DPLL_min_freq"]; } if (!is_null($c["DPLL_max_freq"])&&($c["DPLL_max_freq"]>=1)&&($c["DPLL_max_freq"]<=400000000)) { $v["DPLL_max_freq"]=$c["DPLL_max_freq"]; } if (!is_null($c["GSMR_L_xDCR"])&&($c["GSMR_L_xDCR"]>=1)&&($c["GSMR_L_xDCR"]<=3)) { $v["GSMR_L_xDCR"]=$c["GSMR_L_xDCR"]; } if (!is_null($c["SPI_min_freq"])&&($c["SPI_min_freq"]>=0)&&($c["SPI_min_freq"]<=400000000)) { $v["SPI_min_freq"]=$c["SPI_min_freq"]; } if (!is_null($c["SPI_max_freq"])&&($c["SPI_max_freq"]>=1)&&($c["SPI_max_freq"]<=400000000)) { $v["SPI_max_freq"]=$c["SPI_max_freq"]; } if (!is_null($c["SPI_forced_DIV16"])&&($c["SPI_forced_DIV16"]>=0)&&($c["SPI_forced_DIV16"]<=1)) { $v["SPI_forced_DIV16"]=$c["SPI_forced_DIV16"]; } if (!is_null($c["I2C_min_freq"])&&($c["I2C_min_freq"]>=0)&&($c["I2C_min_freq"]<=400000000)) { $v["I2C_min_freq"]=$c["I2C_min_freq"]; } if (!is_null($c["I2C_max_freq"])&&($c["I2C_max_freq"]>=1)&&($c["I2C_max_freq"]<=400000000)) { $v["I2C_max_freq"]=$c["I2C_max_freq"]; } if (!is_null($c["I2MOD_FLT"])&&($c["I2MOD_FLT"]>=0)&&($c["I2MOD_FLT"]<=1)) { $v["I2MOD_FLT"]=$c["I2MOD_FLT"]; } if (!is_null($c["BR0_MS"])&&($c["BR0_MS"]>=0)&&($c["BR0_MS"]<=3)) { $v["BR0_MS"]=$c["BR0_MS"]; } if (!is_null($c["BR1_MS"])&&($c["BR1_MS"]>=0)&&($c["BR1_MS"]<=3)) { $v["BR1_MS"]=$c["BR1_MS"]; } if (!is_null($c["BR2_MS"])&&($c["BR2_MS"]>=0)&&($c["BR2_MS"]<=3)) { $v["BR2_MS"]=$c["BR2_MS"]; } if (!is_null($c["BR3_MS"])&&($c["BR3_MS"]>=0)&&($c["BR3_MS"]<=3)) { $v["BR3_MS"]=$c["BR3_MS"]; } if (!is_null($c["BR4_MS"])&&($c["BR4_MS"]>=0)&&($c["BR4_MS"]<=3)) { $v["BR4_MS"]=$c["BR4_MS"]; } if (!is_null($c["BR5_MS"])&&($c["BR5_MS"]>=0)&&($c["BR5_MS"]<=3)) { $v["BR5_MS"]=$c["BR5_MS"]; } if (!is_null($c["BR6_MS"])&&($c["BR6_MS"]>=0)&&($c["BR6_MS"]<=3)) { $v["BR6_MS"]=$c["BR6_MS"]; } if (!is_null($c["BR7_MS"])&&($c["BR7_MS"]>=0)&&($c["BR7_MS"]<=3)) { $v["BR7_MS"]=$c["BR7_MS"]; } if (!is_null($c["MPTPR_PTP"])&&($c["MPTPR_PTP"]>=0)&&($c["MPTPR_PTP"]<=255)) { $v["MPTPR_PTP"]=$c["MPTPR_PTP"]; } if (!is_null($c["refresh_UPMA"])&&($c["refresh_UPMA"]>=1)&&($c["refresh_UPMA"]<=10000)) { $v["refresh_UPMA"]=$c["refresh_UPMA"]; } if (!is_null($c["refresh_UPMB"])&&($c["refresh_UPMB"]>=1)&&($c["refresh_UPMB"]<=10000)) { $v["refresh_UPMB"]=$c["refresh_UPMB"]; } if (!is_null($c["MAMR_PTA"])&&($c["MAMR_PTA"]>=0)&&($c["MAMR_PTA"]<=255)) { $v["MAMR_PTA"]=$c["MAMR_PTA"]; } if (!is_null($c["MBMR_PTB"])&&($c["MBMR_PTB"]>=0)&&($c["MBMR_PTB"]<=255)) { $v["MBMR_PTB"]=$c["MBMR_PTB"]; } if (!is_null($c["TINx"])&&($c["TINx"]>=0)&&($c["TINx"]<=400000000)) { $v["TINx"]=$c["TINx"]; } if (!is_null($c["TMRx16_ICLK"])&&($c["TMRx16_ICLK"]>=1)&&($c["TMRx16_ICLK"]<=3)) { $v["TMRx16_ICLK"]=$c["TMRx16_ICLK"]; } if (!is_null($c["TMRx16_PS"])&&($c["TMRx16_PS"]>=0)&&($c["TMRx16_PS"]<=255)) { $v["TMRx16_PS"]=$c["TMRx16_PS"]; } if (!is_null($c["TMRx16_FRR"])&&($c["TMRx16_FRR"]>=0)&&($c["TMRx16_FRR"]<=1)) { $v["TMRx16_FRR"]=$c["TMRx16_FRR"]; } if (!is_null($c["TRRx16_ref"])&&($c["TRRx16_ref"]>=0)&&($c["TRRx16_ref"]<=65535)) { $v["TRRx16_ref"]=$c["TRRx16_ref"]; } if (!is_null($c["TMRx16_OM"])&&($c["TMRx16_OM"]>=0)&&($c["TMRx16_OM"]<=1)) { $v["TMRx16_OM"]=$c["TMRx16_OM"]; } if (!is_null($c["TMRx32_ICLK"])&&($c["TMRx32_ICLK"]>=1)&&($c["TMRx32_ICLK"]<=3)) { $v["TMRx32_ICLK"]=$c["TMRx32_ICLK"]; } if (!is_null($c["TMRx32_PS"])&&($c["TMRx32_PS"]>=0)&&($c["TMRx32_PS"]<=255)) { $v["TMRx32_PS"]=$c["TMRx32_PS"]; } if (!is_null($c["TMRx32_FRR"])&&($c["TMRx32_FRR"]>=0)&&($c["TMRx32_FRR"]<=1)) { $v["TMRx32_FRR"]=$c["TMRx32_FRR"]; } if (!is_null($c["TRRx32_ref"])&&($c["TRRx32_ref"]>=0)&&($c["TRRx32_ref"]<=4294967295)) { $v["TRRx32_ref"]=$c["TRRx32_ref"]; } if (!is_null($c["TMRx32_OM"])&&($c["TMRx32_OM"]>=0)&&($c["TMRx32_OM"]<=1)) { $v["TMRx32_OM"]=$c["TMRx32_OM"]; } if (!is_null($c["RCCR_TIMEP"])&&($c["RCCR_TIMEP"]>=0)&&($c["RCCR_TIMEP"]<=63)) { $v["RCCR_TIMEP"]=$c["RCCR_TIMEP"]; } if (!is_null($c["RISCT_period_nominal"])&&($c["RISCT_period_nominal"]>=0)&&($c["RISCT_period_nominal"]<=99999999)) { $v["RISCT_period_nominal"]=$c["RISCT_period_nominal"]; } if (!is_null($c["TM_CMD"])&&($c["TM_CMD"]>=0)&&($c["TM_CMD"]<=65535)) { $v["TM_CMD"]=$c["TM_CMD"]; } if (!is_null($c["TM_CMD_even"])&&($c["TM_CMD_even"]>=0)&&($c["TM_CMD_even"]<=65535)) { $v["TM_CMD_even"]=$c["TM_CMD_even"]; } if (!is_null($c["TM_CMD_odd"])&&($c["TM_CMD_odd"]>=0)&&($c["TM_CMD_odd"]<=65535)) { $v["TM_CMD_odd"]=$c["TM_CMD_odd"]; } } if (!is_null($_GET["osc_freq"])&&is_numeric($_GET["osc_freq"])&&($_GET["osc_freq"]>=0)&&($_GET["osc_freq"]<=400000000)) { $v["osc_freq"]=$_GET["osc_freq"]; } if (!is_null($_GET["xtal_freq"])&&is_numeric($_GET["xtal_freq"])&&($_GET["xtal_freq"]>=0)&&($_GET["xtal_freq"]<=400000000)) { $v["xtal_freq"]=$_GET["xtal_freq"]; } if (!is_null($_GET["MODCK_12"])&&is_numeric($_GET["MODCK_12"])&&($_GET["MODCK_12"]>=0)&&($_GET["MODCK_12"]<=3)) { $v["MODCK_12"]=$_GET["MODCK_12"]; } if (!is_null($_GET["HRCW_EBDF"])&&is_numeric($_GET["HRCW_EBDF"])&&($_GET["HRCW_EBDF"]>=0)&&($_GET["HRCW_EBDF"]<=1)) { $v["HRCW_EBDF"]=$_GET["HRCW_EBDF"]; } if (!is_null($_GET["processor_freq_rating"])&&is_numeric($_GET["processor_freq_rating"])&&($_GET["processor_freq_rating"]>=50000000)&&($_GET["processor_freq_rating"]<=400000000)) { $v["processor_freq_rating"]=$_GET["processor_freq_rating"]; } if (!is_null($_GET["PLPRCR_MF"])&&is_numeric($_GET["PLPRCR_MF"])&&($_GET["PLPRCR_MF"]>=0)&&($_GET["PLPRCR_MF"]<=4095)) { $v["PLPRCR_MF"]=$_GET["PLPRCR_MF"]; } if (!is_null($_GET["operation_not_powerup"])&&is_numeric($_GET["operation_not_powerup"])&&($_GET["operation_not_powerup"]>=0)&&($_GET["operation_not_powerup"]<=1)) { $v["operation_not_powerup"]=$_GET["operation_not_powerup"]; } if (!is_null($_GET["SCCR_DFSYNC"])&&is_numeric($_GET["SCCR_DFSYNC"])&&($_GET["SCCR_DFSYNC"]>=0)&&($_GET["SCCR_DFSYNC"]<=3)) { $v["SCCR_DFSYNC"]=$_GET["SCCR_DFSYNC"]; } if (!is_null($_GET["SCCR_DFBRG"])&&is_numeric($_GET["SCCR_DFBRG"])&&($_GET["SCCR_DFBRG"]>=0)&&($_GET["SCCR_DFBRG"]<=3)) { $v["SCCR_DFBRG"]=$_GET["SCCR_DFBRG"]; } if (!is_null($_GET["SCCR_DFNL"])&&is_numeric($_GET["SCCR_DFNL"])&&($_GET["SCCR_DFNL"]>=0)&&($_GET["SCCR_DFNL"]<=7)) { $v["SCCR_DFNL"]=$_GET["SCCR_DFNL"]; } if (!is_null($_GET["SCCR_DFNH"])&&is_numeric($_GET["SCCR_DFNH"])&&($_GET["SCCR_DFNH"]>=0)&&($_GET["SCCR_DFNH"]<=7)) { $v["SCCR_DFNH"]=$_GET["SCCR_DFNH"]; } if (!is_null($_GET["PLPRCR_CSRC"])&&is_numeric($_GET["PLPRCR_CSRC"])&&($_GET["PLPRCR_CSRC"]>=0)&&($_GET["PLPRCR_CSRC"]<=1)) { $v["PLPRCR_CSRC"]=$_GET["PLPRCR_CSRC"]; } if (!is_null($_GET["SCCR_EBDF"])&&is_numeric($_GET["SCCR_EBDF"])&&($_GET["SCCR_EBDF"]>=0)&&($_GET["SCCR_EBDF"]<=3)) { $v["SCCR_EBDF"]=$_GET["SCCR_EBDF"]; } if (!is_null($_GET["SCCR_TBS"])&&is_numeric($_GET["SCCR_TBS"])&&($_GET["SCCR_TBS"]>=0)&&($_GET["SCCR_TBS"]<=1)) { $v["SCCR_TBS"]=$_GET["SCCR_TBS"]; } if (!is_null($_GET["timebase_clock_t_bits"])&&is_numeric($_GET["timebase_clock_t_bits"])&&($_GET["timebase_clock_t_bits"]>=15)&&($_GET["timebase_clock_t_bits"]<=64)) { $v["timebase_clock_t_bits"]=$_GET["timebase_clock_t_bits"]; } if (!is_null($_GET["timebase_clock_t_period"])&&is_numeric($_GET["timebase_clock_t_period"])&&($_GET["timebase_clock_t_period"]>=1.000000000000e-03)&&($_GET["timebase_clock_t_period"]<=1.461000000000e+04)) { $v["timebase_clock_t_period"]=$_GET["timebase_clock_t_period"]; } if (!is_null($_GET["dec_period_nominal"])&&is_numeric($_GET["dec_period_nominal"])&&($_GET["dec_period_nominal"]>=1.000000000000e-02)&&($_GET["dec_period_nominal"]<=5.000000000000e+02)) { $v["dec_period_nominal"]=$_GET["dec_period_nominal"]; } if (!is_null($_GET["SCCR_RTSEL"])&&is_numeric($_GET["SCCR_RTSEL"])&&($_GET["SCCR_RTSEL"]>=0)&&($_GET["SCCR_RTSEL"]<=1)) { $v["SCCR_RTSEL"]=$_GET["SCCR_RTSEL"]; } if (!is_null($_GET["SCCR_RTDIV"])&&is_numeric($_GET["SCCR_RTDIV"])&&($_GET["SCCR_RTDIV"]>=0)&&($_GET["SCCR_RTDIV"]<=1)) { $v["SCCR_RTDIV"]=$_GET["SCCR_RTDIV"]; } if (!is_null($_GET["RTCSC_38K"])&&is_numeric($_GET["RTCSC_38K"])&&($_GET["RTCSC_38K"]>=0)&&($_GET["RTCSC_38K"]<=1)) { $v["RTCSC_38K"]=$_GET["RTCSC_38K"]; } if (!is_null($_GET["rtc_clock_t_bits"])&&is_numeric($_GET["rtc_clock_t_bits"])&&($_GET["rtc_clock_t_bits"]>=15)&&($_GET["rtc_clock_t_bits"]<=64)) { $v["rtc_clock_t_bits"]=$_GET["rtc_clock_t_bits"]; } if (!is_null($_GET["rtc_clock_t_period"])&&is_numeric($_GET["rtc_clock_t_period"])&&($_GET["rtc_clock_t_period"]>=1.000000000000e-03)&&($_GET["rtc_clock_t_period"]<=1.461000000000e+04)) { $v["rtc_clock_t_period"]=$_GET["rtc_clock_t_period"]; } if (!is_null($_GET["pit_period_nominal"])&&is_numeric($_GET["pit_period_nominal"])&&($_GET["pit_period_nominal"]>=1.000000000000e-02)&&($_GET["pit_period_nominal"]<=5.000000000000e+02)) { $v["pit_period_nominal"]=$_GET["pit_period_nominal"]; } if (!is_null($_GET["watchdog_period_nominal"])&&is_numeric($_GET["watchdog_period_nominal"])&&($_GET["watchdog_period_nominal"]>=1)&&($_GET["watchdog_period_nominal"]<=1000)) { $v["watchdog_period_nominal"]=$_GET["watchdog_period_nominal"]; } if (!is_null($_GET["watchdog_period_margin"])&&is_numeric($_GET["watchdog_period_margin"])&&($_GET["watchdog_period_margin"]>=1)&&($_GET["watchdog_period_margin"]<=10)) { $v["watchdog_period_margin"]=$_GET["watchdog_period_margin"]; } if (!is_null($_GET["bmt_period_nominal"])&&is_numeric($_GET["bmt_period_nominal"])&&($_GET["bmt_period_nominal"]>=100)&&($_GET["bmt_period_nominal"]<=100000)) { $v["bmt_period_nominal"]=$_GET["bmt_period_nominal"]; } if (!is_null($_GET["CLK2"])&&is_numeric($_GET["CLK2"])&&($_GET["CLK2"]>=0)&&($_GET["CLK2"]<=400000000)) { $v["CLK2"]=$_GET["CLK2"]; } if (!is_null($_GET["CLK4"])&&is_numeric($_GET["CLK4"])&&($_GET["CLK4"]>=0)&&($_GET["CLK4"]<=400000000)) { $v["CLK4"]=$_GET["CLK4"]; } if (!is_null($_GET["DPLL_min_freq"])&&is_numeric($_GET["DPLL_min_freq"])&&($_GET["DPLL_min_freq"]>=0)&&($_GET["DPLL_min_freq"]<=400000000)) { $v["DPLL_min_freq"]=$_GET["DPLL_min_freq"]; } if (!is_null($_GET["DPLL_max_freq"])&&is_numeric($_GET["DPLL_max_freq"])&&($_GET["DPLL_max_freq"]>=1)&&($_GET["DPLL_max_freq"]<=400000000)) { $v["DPLL_max_freq"]=$_GET["DPLL_max_freq"]; } if (!is_null($_GET["GSMR_L_xDCR"])&&is_numeric($_GET["GSMR_L_xDCR"])&&($_GET["GSMR_L_xDCR"]>=1)&&($_GET["GSMR_L_xDCR"]<=3)) { $v["GSMR_L_xDCR"]=$_GET["GSMR_L_xDCR"]; } if (!is_null($_GET["SPI_min_freq"])&&is_numeric($_GET["SPI_min_freq"])&&($_GET["SPI_min_freq"]>=0)&&($_GET["SPI_min_freq"]<=400000000)) { $v["SPI_min_freq"]=$_GET["SPI_min_freq"]; } if (!is_null($_GET["SPI_max_freq"])&&is_numeric($_GET["SPI_max_freq"])&&($_GET["SPI_max_freq"]>=1)&&($_GET["SPI_max_freq"]<=400000000)) { $v["SPI_max_freq"]=$_GET["SPI_max_freq"]; } if (!is_null($_GET["SPI_forced_DIV16"])&&is_numeric($_GET["SPI_forced_DIV16"])&&($_GET["SPI_forced_DIV16"]>=0)&&($_GET["SPI_forced_DIV16"]<=1)) { $v["SPI_forced_DIV16"]=$_GET["SPI_forced_DIV16"]; } if (!is_null($_GET["I2C_min_freq"])&&is_numeric($_GET["I2C_min_freq"])&&($_GET["I2C_min_freq"]>=0)&&($_GET["I2C_min_freq"]<=400000000)) { $v["I2C_min_freq"]=$_GET["I2C_min_freq"]; } if (!is_null($_GET["I2C_max_freq"])&&is_numeric($_GET["I2C_max_freq"])&&($_GET["I2C_max_freq"]>=1)&&($_GET["I2C_max_freq"]<=400000000)) { $v["I2C_max_freq"]=$_GET["I2C_max_freq"]; } if (!is_null($_GET["I2MOD_FLT"])&&is_numeric($_GET["I2MOD_FLT"])&&($_GET["I2MOD_FLT"]>=0)&&($_GET["I2MOD_FLT"]<=1)) { $v["I2MOD_FLT"]=$_GET["I2MOD_FLT"]; } if (!is_null($_GET["BR0_MS"])&&is_numeric($_GET["BR0_MS"])&&($_GET["BR0_MS"]>=0)&&($_GET["BR0_MS"]<=3)) { $v["BR0_MS"]=$_GET["BR0_MS"]; } if (!is_null($_GET["BR1_MS"])&&is_numeric($_GET["BR1_MS"])&&($_GET["BR1_MS"]>=0)&&($_GET["BR1_MS"]<=3)) { $v["BR1_MS"]=$_GET["BR1_MS"]; } if (!is_null($_GET["BR2_MS"])&&is_numeric($_GET["BR2_MS"])&&($_GET["BR2_MS"]>=0)&&($_GET["BR2_MS"]<=3)) { $v["BR2_MS"]=$_GET["BR2_MS"]; } if (!is_null($_GET["BR3_MS"])&&is_numeric($_GET["BR3_MS"])&&($_GET["BR3_MS"]>=0)&&($_GET["BR3_MS"]<=3)) { $v["BR3_MS"]=$_GET["BR3_MS"]; } if (!is_null($_GET["BR4_MS"])&&is_numeric($_GET["BR4_MS"])&&($_GET["BR4_MS"]>=0)&&($_GET["BR4_MS"]<=3)) { $v["BR4_MS"]=$_GET["BR4_MS"]; } if (!is_null($_GET["BR5_MS"])&&is_numeric($_GET["BR5_MS"])&&($_GET["BR5_MS"]>=0)&&($_GET["BR5_MS"]<=3)) { $v["BR5_MS"]=$_GET["BR5_MS"]; } if (!is_null($_GET["BR6_MS"])&&is_numeric($_GET["BR6_MS"])&&($_GET["BR6_MS"]>=0)&&($_GET["BR6_MS"]<=3)) { $v["BR6_MS"]=$_GET["BR6_MS"]; } if (!is_null($_GET["BR7_MS"])&&is_numeric($_GET["BR7_MS"])&&($_GET["BR7_MS"]>=0)&&($_GET["BR7_MS"]<=3)) { $v["BR7_MS"]=$_GET["BR7_MS"]; } if (!is_null($_GET["MPTPR_PTP"])&&is_numeric($_GET["MPTPR_PTP"])&&($_GET["MPTPR_PTP"]>=0)&&($_GET["MPTPR_PTP"]<=255)) { $v["MPTPR_PTP"]=$_GET["MPTPR_PTP"]; } if (!is_null($_GET["refresh_UPMA"])&&is_numeric($_GET["refresh_UPMA"])&&($_GET["refresh_UPMA"]>=1)&&($_GET["refresh_UPMA"]<=10000)) { $v["refresh_UPMA"]=$_GET["refresh_UPMA"]; } if (!is_null($_GET["refresh_UPMB"])&&is_numeric($_GET["refresh_UPMB"])&&($_GET["refresh_UPMB"]>=1)&&($_GET["refresh_UPMB"]<=10000)) { $v["refresh_UPMB"]=$_GET["refresh_UPMB"]; } if (!is_null($_GET["MAMR_PTA"])&&is_numeric($_GET["MAMR_PTA"])&&($_GET["MAMR_PTA"]>=0)&&($_GET["MAMR_PTA"]<=255)) { $v["MAMR_PTA"]=$_GET["MAMR_PTA"]; } if (!is_null($_GET["MBMR_PTB"])&&is_numeric($_GET["MBMR_PTB"])&&($_GET["MBMR_PTB"]>=0)&&($_GET["MBMR_PTB"]<=255)) { $v["MBMR_PTB"]=$_GET["MBMR_PTB"]; } if (!is_null($_GET["TINx"])&&is_numeric($_GET["TINx"])&&($_GET["TINx"]>=0)&&($_GET["TINx"]<=400000000)) { $v["TINx"]=$_GET["TINx"]; } if (!is_null($_GET["TMRx16_ICLK"])&&is_numeric($_GET["TMRx16_ICLK"])&&($_GET["TMRx16_ICLK"]>=1)&&($_GET["TMRx16_ICLK"]<=3)) { $v["TMRx16_ICLK"]=$_GET["TMRx16_ICLK"]; } if (!is_null($_GET["TMRx16_PS"])&&is_numeric($_GET["TMRx16_PS"])&&($_GET["TMRx16_PS"]>=0)&&($_GET["TMRx16_PS"]<=255)) { $v["TMRx16_PS"]=$_GET["TMRx16_PS"]; } if (!is_null($_GET["TMRx16_FRR"])&&is_numeric($_GET["TMRx16_FRR"])&&($_GET["TMRx16_FRR"]>=0)&&($_GET["TMRx16_FRR"]<=1)) { $v["TMRx16_FRR"]=$_GET["TMRx16_FRR"]; } if (!is_null($_GET["TRRx16_ref"])&&is_numeric($_GET["TRRx16_ref"])&&($_GET["TRRx16_ref"]>=0)&&($_GET["TRRx16_ref"]<=65535)) { $v["TRRx16_ref"]=$_GET["TRRx16_ref"]; } if (!is_null($_GET["TMRx16_OM"])&&is_numeric($_GET["TMRx16_OM"])&&($_GET["TMRx16_OM"]>=0)&&($_GET["TMRx16_OM"]<=1)) { $v["TMRx16_OM"]=$_GET["TMRx16_OM"]; } if (!is_null($_GET["TMRx32_ICLK"])&&is_numeric($_GET["TMRx32_ICLK"])&&($_GET["TMRx32_ICLK"]>=1)&&($_GET["TMRx32_ICLK"]<=3)) { $v["TMRx32_ICLK"]=$_GET["TMRx32_ICLK"]; } if (!is_null($_GET["TMRx32_PS"])&&is_numeric($_GET["TMRx32_PS"])&&($_GET["TMRx32_PS"]>=0)&&($_GET["TMRx32_PS"]<=255)) { $v["TMRx32_PS"]=$_GET["TMRx32_PS"]; } if (!is_null($_GET["TMRx32_FRR"])&&is_numeric($_GET["TMRx32_FRR"])&&($_GET["TMRx32_FRR"]>=0)&&($_GET["TMRx32_FRR"]<=1)) { $v["TMRx32_FRR"]=$_GET["TMRx32_FRR"]; } if (!is_null($_GET["TRRx32_ref"])&&is_numeric($_GET["TRRx32_ref"])&&($_GET["TRRx32_ref"]>=0)&&($_GET["TRRx32_ref"]<=4294967295)) { $v["TRRx32_ref"]=$_GET["TRRx32_ref"]; } if (!is_null($_GET["TMRx32_OM"])&&is_numeric($_GET["TMRx32_OM"])&&($_GET["TMRx32_OM"]>=0)&&($_GET["TMRx32_OM"]<=1)) { $v["TMRx32_OM"]=$_GET["TMRx32_OM"]; } if (!is_null($_GET["RCCR_TIMEP"])&&is_numeric($_GET["RCCR_TIMEP"])&&($_GET["RCCR_TIMEP"]>=0)&&($_GET["RCCR_TIMEP"]<=63)) { $v["RCCR_TIMEP"]=$_GET["RCCR_TIMEP"]; } if (!is_null($_GET["RISCT_period_nominal"])&&is_numeric($_GET["RISCT_period_nominal"])&&($_GET["RISCT_period_nominal"]>=0)&&($_GET["RISCT_period_nominal"]<=99999999)) { $v["RISCT_period_nominal"]=$_GET["RISCT_period_nominal"]; } if (!is_null($_GET["TM_CMD"])&&is_numeric($_GET["TM_CMD"])&&($_GET["TM_CMD"]>=0)&&($_GET["TM_CMD"]<=65535)) { $v["TM_CMD"]=$_GET["TM_CMD"]; } if (!is_null($_GET["TM_CMD_even"])&&is_numeric($_GET["TM_CMD_even"])&&($_GET["TM_CMD_even"]>=0)&&($_GET["TM_CMD_even"]<=65535)) { $v["TM_CMD_even"]=$_GET["TM_CMD_even"]; } if (!is_null($_GET["TM_CMD_odd"])&&is_numeric($_GET["TM_CMD_odd"])&&($_GET["TM_CMD_odd"]>=0)&&($_GET["TM_CMD_odd"]<=65535)) { $v["TM_CMD_odd"]=$_GET["TM_CMD_odd"]; } define("INT_MAX",2147483647); define("BIG",1.0E12); setcookie("clock_mpc8xx_8BEE6B5E95DAC66E40B3",base64_encode(serialize($v))); ?> MPC8xx Clock Configuration Spreadsheet Utility

MPC8xx Clock Configuration Spreadsheet Utility

CONNOTECH Experts-conseils inc.
PPCMB/850 Product Family Documentation
System Engineering Support Document
March 2003 (revised July 2003 and February 2004)
WARRANTY DISCLAIMER
Because this spreadsheet utility is made available free of charge, there is no warranty for this spreadsheet utility, to the extent permitted by applicable law. Except when otherwise stated in writing CONNOTECH Experts-conseils inc. provide this spreadsheet utility "as is" without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. The entire risk as to the quality and performance of this spreadsheet utility is with you, the spreadsheet user. Should this spreadsheet utility prove defective, you assume the cost of all necessary servicing, repair or correction.
In no event unless required by applicable law or agreed to in writing will CONNOTECH Experts-conseils inc. be liable to you for damages, including any general, special, incidental or consequential damages arising out of the use or inability to use this spreadsheet utility, even if CONNOTECH Experts-conseils inc. has been advised of the possibility of such damages.

SPLL (System Phase Lock Loop)

// External Oscillator Frequency   ";if (!is_null($_GET["osc_freq"])&&(!is_numeric($_GET["osc_freq"])||($_GET["osc_freq"]<0)||($_GET["osc_freq"]>400000000))) {print "\n**** Range error for \"osc_freq\" (valid range from 0 to 400000000).\n";} ?> Hz          H/W design
// Crystal (EXTAL/XTAL) Frequency  ";if (!is_null($_GET["xtal_freq"])&&(!is_numeric($_GET["xtal_freq"])||($_GET["xtal_freq"]<0)||($_GET["xtal_freq"]>400000000))) {print "\n**** Range error for \"xtal_freq\" (valid range from 0 to 400000000).\n";} ?> Hz          H/W design

// MODCK[1-2]                      ";if (!is_null($_GET["MODCK_12"])&&(!is_numeric($_GET["MODCK_12"])||($_GET["MODCK_12"]<0)||($_GET["MODCK_12"]>3))) {print "\n**** Range error for \"MODCK_12\" (valid range from 0 to 3).\n";} ?>             H/W design
// HRCW(EBDF)                      ";if (!is_null($_GET["HRCW_EBDF"])&&(!is_numeric($_GET["HRCW_EBDF"])||($_GET["HRCW_EBDF"]<0)||($_GET["HRCW_EBDF"]>1))) {print "\n**** Range error for \"HRCW_EBDF\" (valid range from 0 to 1).\n";} ?>             H/W design
// MPC850 speed                    ";if (!is_null($_GET["processor_freq_rating"])&&(!is_numeric($_GET["processor_freq_rating"])||($_GET["processor_freq_rating"]<50000000)||($_GET["processor_freq_rating"]>400000000))) {print "\n**** Range error for \"processor_freq_rating\" (valid range from 50000000 to 400000000).\n";} ?> Hz          H/W design

// OSCCLK                         
Hz          

// PLPRCR(MF) at reset            

// GCLK2 at reset                 
Hz          
// CLKOUT at reset                
Hz          

// PLPRCR(MF) during operation     ";if (!is_null($_GET["PLPRCR_MF"])&&(!is_numeric($_GET["PLPRCR_MF"])||($_GET["PLPRCR_MF"]<0)||($_GET["PLPRCR_MF"]>4095))) {print "\n**** Range error for \"PLPRCR_MF\" (valid range from 0 to 4095).\n";} ?>             S/W design

// Operation (1) vs Power-up (0)   ";if (!is_null($_GET["operation_not_powerup"])&&(!is_numeric($_GET["operation_not_powerup"])||($_GET["operation_not_powerup"]<0)||($_GET["operation_not_powerup"]>1))) {print "\n**** Range error for \"operation_not_powerup\" (valid range from 0 to 1).\n";} ?>             spreadsheet alternative

// Applicable PLPRCR(MF)          


// VCOOUT                         
Hz          $v["processor_freq_rating"]))?"ERROR":""); ?>


// SCCR(DFSYNC)                    ";if (!is_null($_GET["SCCR_DFSYNC"])&&(!is_numeric($_GET["SCCR_DFSYNC"])||($_GET["SCCR_DFSYNC"]<0)||($_GET["SCCR_DFSYNC"]>3))) {print "\n**** Range error for \"SCCR_DFSYNC\" (valid range from 0 to 3).\n";} ?>             S/W design
// SYNCCLK                        
Hz          


// SCCR(DFBRG)                     ";if (!is_null($_GET["SCCR_DFBRG"])&&(!is_numeric($_GET["SCCR_DFBRG"])||($_GET["SCCR_DFBRG"]<0)||($_GET["SCCR_DFBRG"]>3))) {print "\n**** Range error for \"SCCR_DFBRG\" (valid range from 0 to 3).\n";} ?>             S/W design
// BRGCLK                         
Hz          

// SCCR(DFNL)                      ";if (!is_null($_GET["SCCR_DFNL"])&&(!is_numeric($_GET["SCCR_DFNL"])||($_GET["SCCR_DFNL"]<0)||($_GET["SCCR_DFNL"]>7))) {print "\n**** Range error for \"SCCR_DFNL\" (valid range from 0 to 7).\n";} ?>             S/W design
// SCCR(DFNH)                      ";if (!is_null($_GET["SCCR_DFNH"])&&(!is_numeric($_GET["SCCR_DFNH"])||($_GET["SCCR_DFNH"]<0)||($_GET["SCCR_DFNH"]>7))) {print "\n**** Range error for \"SCCR_DFNH\" (valid range from 0 to 7).\n";} ?>             S/W design
// PLPRCR(CSRC)                    ";if (!is_null($_GET["PLPRCR_CSRC"])&&(!is_numeric($_GET["PLPRCR_CSRC"])||($_GET["PLPRCR_CSRC"]<0)||($_GET["PLPRCR_CSRC"]>1))) {print "\n**** Range error for \"PLPRCR_CSRC\" (valid range from 0 to 1).\n";} ?>             S/W operation
// GCLK2                          
Hz          

// SCCR(EBDF)                      ";if (!is_null($_GET["SCCR_EBDF"])&&(!is_numeric($_GET["SCCR_EBDF"])||($_GET["SCCR_EBDF"]<0)||($_GET["SCCR_EBDF"]>3))) {print "\n**** Range error for \"SCCR_EBDF\" (valid range from 0 to 3).\n";} ?>             S/W design
// CLKOUT                         
Hz          

// High frequency GCLK2           
Hz          
// High frequency CLKOUT          
Hz          

// Low frequency GCLK2            
Hz          
// Low frequency CLKOUT           
Hz          


Timebase and Decrementer

0)?(f_timebase_rollover_bits()-$v["timebase_clock_t_bits"]):0))); }
function f_timebase_clock_t_period_actual () { global $v;
return f_timebase_resolution()*(pow(2.0,$v["timebase_clock_t_bits"]))/(24.0*60.0*60.0*1000.0); }
function f_timebase_CLOCKS_PER_SEC () { global $v;
return 1.0/(f_timebase_resolution()/1000.0); }
function f_DEC_period () { global $v;
return round(($v["dec_period_nominal"]/1000.0)*(f_tmb_clk_source()/f_TMBCLK_prescaler())); }
function f_dec_period_actual () { global $v;
if (f_tmb_clk_source()==0) return BIG;
return (f_DEC_period()/(f_tmb_clk_source()/f_TMBCLK_prescaler()))*1000.0; }
function f_dec_period_accuracy () { global $v;
return (abs(f_dec_period_actual()-$v["dec_period_nominal"])/$v["dec_period_nominal"])*100.0; }
?>
// SCCR(TBS)                       ";if (!is_null($_GET["SCCR_TBS"])&&(!is_numeric($_GET["SCCR_TBS"])||($_GET["SCCR_TBS"]<0)||($_GET["SCCR_TBS"]>1))) {print "\n**** Range error for \"SCCR_TBS\" (valid range from 0 to 1).\n";} ?>             S/W design

// Clock source                   
Hz          


// TMBCLK prescaler               


// TMBCLK resolution              
micro-s     
// DECrementer max. period        
s           
// Timebase range                 
years       

clock_t Type Made From the Timebase Counter

// clock_t significant bits        ";if (!is_null($_GET["timebase_clock_t_bits"])&&(!is_numeric($_GET["timebase_clock_t_bits"])||($_GET["timebase_clock_t_bits"]<15)||($_GET["timebase_clock_t_bits"]>64))) {print "\n**** Range error for \"timebase_clock_t_bits\" (valid range from 15 to 64).\n";} ?> bits        S/W design
// clock_t minimum rollover period ";if (!is_null($_GET["timebase_clock_t_period"])&&(!is_numeric($_GET["timebase_clock_t_period"])||($_GET["timebase_clock_t_period"]<1.000000000000e-03)||($_GET["timebase_clock_t_period"]>1.461000000000e+04))) {print "\n**** Range error for \"timebase_clock_t_period\" (valid range from 1.000000000000e-03 to 1.461000000000e+04).\n";} ?> days        S/W design
// clock_t minimum rollover count 

// clock_t rollover bits          
bits        
// clock_t resolution             
ms          
// clock_t actual rollover period 
days        
// CLOCKS_PER_SEC                 

//                                =2)?"Low power behavior: mode DEEP SLEEP stops":"")); ?>


Timer Tick Using the Decrementer

// Period, nominal                 ";if (!is_null($_GET["dec_period_nominal"])&&(!is_numeric($_GET["dec_period_nominal"])||($_GET["dec_period_nominal"]<1.000000000000e-02)||($_GET["dec_period_nominal"]>5.000000000000e+02))) {print "\n**** Range error for \"dec_period_nominal\" (valid range from 1.000000000000e-02 to 5.000000000000e+02).\n";} ?> ms          S/W design
// Period in TMBCLK units         

// Period, actual                 
ms          
// Period rounding error          
%           
//                                =2)?"Low power behavior: mode DEEP SLEEP stops":"")); ?>



PIT and RTC Clocks

0)?(f_rtc_rollover_bits()-$v["rtc_clock_t_bits"]):0))); }
function f_rtc_clock_t_period_actual () { global $v;
return f_rtc_resolution()*(pow(2.0,$v["rtc_clock_t_bits"]))/(24.0*60.0*60.0*1000.0); }
function f_rtc_CLOCKS_PER_SEC () { global $v;
return 1.0/(f_rtc_resolution()/1000.0); }
?>
// SCCR(RTSEL)                     ";if (!is_null($_GET["SCCR_RTSEL"])&&(!is_numeric($_GET["SCCR_RTSEL"])||($_GET["SCCR_RTSEL"]<0)||($_GET["SCCR_RTSEL"]>1))) {print "\n**** Range error for \"SCCR_RTSEL\" (valid range from 0 to 1).\n";} ?>             S/W design
// SCCR(RTDIV)                     ";if (!is_null($_GET["SCCR_RTDIV"])&&(!is_numeric($_GET["SCCR_RTDIV"])||($_GET["SCCR_RTDIV"]<0)||($_GET["SCCR_RTDIV"]>1))) {print "\n**** Range error for \"SCCR_RTDIV\" (valid range from 0 to 1).\n";} ?>             S/W design

// Real-Time Clock source         
Hz          

// Real-Time Clock divisor        


// PITRCLK                        
Hz          
// PIT and RTC lsb resolution     
ms          

// RTCSC(38K)                      ";if (!is_null($_GET["RTCSC_38K"])&&(!is_numeric($_GET["RTCSC_38K"])||($_GET["RTCSC_38K"]<0)||($_GET["RTCSC_38K"]>1))) {print "\n**** Range error for \"RTCSC_38K\" (valid range from 0 to 1).\n";} ?>             S/W design
// RTC "one second" period        
s           
// RTC range                      
years       

clock_t Type Made From the RTC Counter

// clock_t significant bits        ";if (!is_null($_GET["rtc_clock_t_bits"])&&(!is_numeric($_GET["rtc_clock_t_bits"])||($_GET["rtc_clock_t_bits"]<15)||($_GET["rtc_clock_t_bits"]>64))) {print "\n**** Range error for \"rtc_clock_t_bits\" (valid range from 15 to 64).\n";} ?> bits        S/W design
// clock_t minimum rollover period ";if (!is_null($_GET["rtc_clock_t_period"])&&(!is_numeric($_GET["rtc_clock_t_period"])||($_GET["rtc_clock_t_period"]<1.000000000000e-03)||($_GET["rtc_clock_t_period"]>1.461000000000e+04))) {print "\n**** Range error for \"rtc_clock_t_period\" (valid range from 1.000000000000e-03 to 1.461000000000e+04).\n";} ?> days        S/W design
// clock_t minimum rollover count 

// clock_t rollover bits          
bits        
// clock_t resolution             
ms          
// clock_t actual rollover period 
days        
// CLOCKS_PER_SEC                 

//                                


Timer Tick Using the PIT Counter

// PIT period, nominal             ";if (!is_null($_GET["pit_period_nominal"])&&(!is_numeric($_GET["pit_period_nominal"])||($_GET["pit_period_nominal"]<1.000000000000e-02)||($_GET["pit_period_nominal"]>5.000000000000e+02))) {print "\n**** Range error for \"pit_period_nominal\" (valid range from 1.000000000000e-02 to 5.000000000000e+02).\n";} ?> ms          S/W design
// PITC(PITC)                     

// PIT period, actual             
ms          
// PIT period rounding error      
%           
//                                



=0x10000; } function f_SYPCR_SWTC () { global $v; return f_SYPCR_SWP()?f_SYPCR_SWTC_SWP_1():f_SYPCR_SWTC_SWP_0(); } function f_watchdog_period_actual () { global $v; if (f_highGCLK2()==0) return BIG; return (f_SYPCR_SWTC()/(f_highGCLK2()/((f_SYPCR_SWP()==0)?1.0:2048.0)))*1000.0; } function f_watchdog_period_low_clock () { global $v; if (f_lowGCLK2()==0) return BIG; return (f_SYPCR_SWTC()/(f_lowGCLK2()/((f_SYPCR_SWP()==0)?1.0:2048.0)))*1000.0; } ?>

Software Watchdog

// Input clock, operating         
Hz          

// Input clock, reset             
Hz          
// Watchdog period, reset         
s           

// SYPCR(SWP)                     

// SYPCR(SWTC)                    



// Watchdog period, nominal        ";if (!is_null($_GET["watchdog_period_nominal"])&&(!is_numeric($_GET["watchdog_period_nominal"])||($_GET["watchdog_period_nominal"]<1)||($_GET["watchdog_period_nominal"]>1000))) {print "\n**** Range error for \"watchdog_period_nominal\" (valid range from 1 to 1000).\n";} ?> ms          S/W design
// Watchdog period, margin         ";if (!is_null($_GET["watchdog_period_margin"])&&(!is_numeric($_GET["watchdog_period_margin"])||($_GET["watchdog_period_margin"]<1)||($_GET["watchdog_period_margin"]>10))) {print "\n**** Range error for \"watchdog_period_margin\" (valid range from 1 to 10).\n";} ?> ms          S/W design
// Watchdog period, actual        
ms          

// Watchdog period, low clock mode
ms          

// C--- intermediate values ---   

// Watchdog period, total         
s           
// SYPCR(SWTC), assuming SWP=0    

// SYPCR(SWTC), assuming SWP=1    



255) $rv=255; return $rv; } function f_bmt_period_actual () { global $v; if (0==f_SYPCR_BMT()) return BIG; if (0==f_bmt_clock()) return BIG; return 1000000000.0/(f_bmt_clock()/f_SYPCR_BMT()); } function f_bmt_period_low_clock () { global $v; if (0==f_SYPCR_BMT()) return BIG; if (0==f_lowGCLK2()) return BIG; return 1000000000.0/((f_lowGCLK2()/8.0)/f_SYPCR_BMT()); } ?>

Bus Monitor Timing

// BMT clock source               
Hz          

// BMT period, nominal             ";if (!is_null($_GET["bmt_period_nominal"])&&(!is_numeric($_GET["bmt_period_nominal"])||($_GET["bmt_period_nominal"]<100)||($_GET["bmt_period_nominal"]>100000))) {print "\n**** Range error for \"bmt_period_nominal\" (valid range from 100 to 100000).\n";} ?> nanno-s     S/W design
// SYPCR(BMT)                     

// BMT period, actual             
nanno-s     

// BMT period, low clock mode     
nanno-s     


Baud Rate Generators

4096;
if (2==$BRGCn_EXTC) return round($v["CLK4"]/($baud*16.0))>4096;
                    return round(f_BRGCLK()/($baud*16.0))>4096; }
function f_BRGCn_CD ($baud, $BRGCn_EXTC) { global $v;
if (1==$BRGCn_EXTC)      $rv= round(($v["CLK2"]/(1.0+15.0*f_BRGCn_DIV16($baud,$BRGCn_EXTC)))/($baud*16.0))-1;
else if (2==$BRGCn_EXTC) $rv= round(($v["CLK4"]/(1.0+15.0*f_BRGCn_DIV16($baud,$BRGCn_EXTC)))/($baud*16.0))-1;
else                     $rv= round((f_BRGCLK()/(1.0+15.0*f_BRGCn_DIV16($baud,$BRGCn_EXTC)))/($baud*16.0))-1;
if ($rv<0) $rv=0;
else if ($rv>4095) $rv=4095;
return $rv; }
function f_brg_percent ($baud, $BRGCn_EXTC) { global $v;
if (1==$BRGCn_EXTC) return 100.0*abs((($v["CLK2"]/(1.0+15.0*f_BRGCn_DIV16($baud,$BRGCn_EXTC)))/(f_BRGCn_CD($baud,$BRGCn_EXTC)+1.0)/16.0-$baud)/$baud);
if (2==$BRGCn_EXTC) return 100.0*abs((($v["CLK4"]/(1.0+15.0*f_BRGCn_DIV16($baud,$BRGCn_EXTC)))/(f_BRGCn_CD($baud,$BRGCn_EXTC)+1.0)/16.0-$baud)/$baud);
                    return 100.0*abs(((f_BRGCLK()/(1.0+15.0*f_BRGCn_DIV16($baud,$BRGCn_EXTC)))/(f_BRGCn_CD($baud,$BRGCn_EXTC)+1.0)/16.0-$baud)/$baud); }
function f_DPLL_ratio () { global $v;
return 8*(1<<($v["GSMR_L_xDCR"]-1)); }
function f_BRGCn_DIV16_dpll ($BRGCn_EXTC) { global $v;
if (1==$BRGCn_EXTC) return ceil($v["CLK2"]/($v["DPLL_max_freq"]*f_DPLL_ratio()))>4096;
if (2==$BRGCn_EXTC) return ceil($v["CLK4"]/($v["DPLL_max_freq"]*f_DPLL_ratio()))>4096;
                    return ceil(f_BRGCLK()/($v["DPLL_max_freq"]*f_DPLL_ratio()))>4096; }
function f_BRGCn_CD_dpll ($BRGCn_EXTC) { global $v;
if (1==$BRGCn_EXTC)      $rv= ceil($v["CLK2"]/(1.0+15.0*f_BRGCn_DIV16_dpll($BRGCn_EXTC))/($v["DPLL_max_freq"]*f_DPLL_ratio()))-1;
else if (2==$BRGCn_EXTC) $rv= ceil($v["CLK4"]/(1.0+15.0*f_BRGCn_DIV16_dpll($BRGCn_EXTC))/($v["DPLL_max_freq"]*f_DPLL_ratio()))-1;
else                     $rv= ceil(f_BRGCLK()/(1.0+15.0*f_BRGCn_DIV16_dpll($BRGCn_EXTC))/($v["DPLL_max_freq"]*f_DPLL_ratio()))-1;
if ($rv<0) $rv=0;
else if ($rv>4095) $rv=4095;
return $rv; }
function f_dpll_actual_freq ($BRGCn_EXTC) { global $v;
if (1==$BRGCn_EXTC) return $v["CLK2"]/((1.0+15.0*f_BRGCn_DIV16_dpll($BRGCn_EXTC)))/(f_BRGCn_CD_dpll($BRGCn_EXTC)+1.0)/f_DPLL_ratio();
if (2==$BRGCn_EXTC) return $v["CLK4"]/((1.0+15.0*f_BRGCn_DIV16_dpll($BRGCn_EXTC)))/(f_BRGCn_CD_dpll($BRGCn_EXTC)+1.0)/f_DPLL_ratio();
                    return f_BRGCLK()/((1.0+15.0*f_BRGCn_DIV16_dpll($BRGCn_EXTC)))/(f_BRGCn_CD_dpll($BRGCn_EXTC)+1.0)/f_DPLL_ratio(); }
function f_SPMODE_DIV16 () { global $v;
return ($v["SPI_forced_DIV16"]>0)?1:(f_BRGCLK()/($v["SPI_max_freq"]*4.0))>16.0; }
function f_SPMODE_PM () { global $v;
$rv=ceil((f_BRGCLK()/(1.0+15.0*f_SPMODE_DIV16()))/($v["SPI_max_freq"]*4.0))-1;
if ($rv<0) $rv=0;
else if ($rv>15) $rv=15;
return $rv; }
function f_SPI_actual_freq () { global $v;
return round((f_BRGCLK()/(1.0+15.0*f_SPMODE_DIV16()))/(4.0*(f_SPMODE_PM()+1.0))); }
function f_I2BRG ($I2MOD_PDIV) { global $v;
$rv=ceil((f_BRGCLK()/(32.0/(1<<$I2MOD_PDIV)))/2.0/$v["I2C_max_freq"])-3;
if ($rv<0) $rv=0;
else if ($rv>255) $rv=255;
return $rv; }
function f_actual_freq ($I2MOD_PDIV) { global $v;
return (f_BRGCLK()/(32.0/(1<<$I2MOD_PDIV)))/(2.0*(f_I2BRG($I2MOD_PDIV)+3.0)); }
?>
// BRGCLK                         
Hz          
// CLK2                            ";if (!is_null($_GET["CLK2"])&&(!is_numeric($_GET["CLK2"])||($_GET["CLK2"]<0)||($_GET["CLK2"]>400000000))) {print "\n**** Range error for \"CLK2\" (valid range from 0 to 400000000).\n";} ?> Hz          H/W design
// CLK4                            ";if (!is_null($_GET["CLK4"])&&(!is_numeric($_GET["CLK4"])||($_GET["CLK4"]<0)||($_GET["CLK4"]>400000000))) {print "\n**** Range error for \"CLK4\" (valid range from 0 to 400000000).\n";} ?> Hz          H/W design

Asynchronous Baud Rates Clocking

        |   BRGCLK      |    CLK2       |    CLK4       |
        |DIV16          |DIV16          |DIV16          |
  Speed |     CD     %  |     CD     %  |     CD     %  |
    600 | | | |
   1200 | | | |
   2400 | | | |
   4800 | | | |
   9600 | | | |
  14400 | | | |
  19200 | | | |
  28800 | | | |
  38400 | | | |
  57600 | | | |
  76800 | | | |
 115200 | | | |
 230400 | | | |
 460800 | | | |

High Speed DPLL Clocking

// Minimum                         ";if (!is_null($_GET["DPLL_min_freq"])&&(!is_numeric($_GET["DPLL_min_freq"])||($_GET["DPLL_min_freq"]<0)||($_GET["DPLL_min_freq"]>400000000))) {print "\n**** Range error for \"DPLL_min_freq\" (valid range from 0 to 400000000).\n";} ?> Hz          S/W design
// Maximum                         ";if (!is_null($_GET["DPLL_max_freq"])&&(!is_numeric($_GET["DPLL_max_freq"])||($_GET["DPLL_max_freq"]<1)||($_GET["DPLL_max_freq"]>400000000))) {print "\n**** Range error for \"DPLL_max_freq\" (valid range from 1 to 400000000).\n";} ?> Hz          S/W design
// GSMR_L(xDCR)                    ";if (!is_null($_GET["GSMR_L_xDCR"])&&(!is_numeric($_GET["GSMR_L_xDCR"])||($_GET["GSMR_L_xDCR"]<1)||($_GET["GSMR_L_xDCR"]>3))) {print "\n**** Range error for \"GSMR_L_xDCR\" (valid range from 1 to 3).\n";} ?>             S/W design
// DPLL ratio                     


             |  BRGCLK   |   CLK2    |   CLK4    |
             |DIV16      |DIV16      |DIV16      |
             |       CD  |       CD  |       CD  |
             |  |  |  |
Actual freq. |$v["DPLL_max_freq"]))?"ERROR":"Hz"); ?> |$v["DPLL_max_freq"]))?"ERROR":"Hz"); ?> |$v["DPLL_max_freq"]))?"ERROR":"Hz"); ?> |

SPI Clocking

// Minimum                         ";if (!is_null($_GET["SPI_min_freq"])&&(!is_numeric($_GET["SPI_min_freq"])||($_GET["SPI_min_freq"]<0)||($_GET["SPI_min_freq"]>400000000))) {print "\n**** Range error for \"SPI_min_freq\" (valid range from 0 to 400000000).\n";} ?> Hz          H/W design
// Maximum                         ";if (!is_null($_GET["SPI_max_freq"])&&(!is_numeric($_GET["SPI_max_freq"])||($_GET["SPI_max_freq"]<1)||($_GET["SPI_max_freq"]>400000000))) {print "\n**** Range error for \"SPI_max_freq\" (valid range from 1 to 400000000).\n";} ?> Hz          H/W design
// Forced DIV16                    ";if (!is_null($_GET["SPI_forced_DIV16"])&&(!is_numeric($_GET["SPI_forced_DIV16"])||($_GET["SPI_forced_DIV16"]<0)||($_GET["SPI_forced_DIV16"]>1))) {print "\n**** Range error for \"SPI_forced_DIV16\" (valid range from 0 to 1).\n";} ?>             S/W design

// SPMODE(DIV16)                  

// SPMODE(PM)                     

// Actual freq.                   
Hz          $v["SPI_max_freq"]))?"ERROR":""); ?>


I2C Clocking

// Minimum                         ";if (!is_null($_GET["I2C_min_freq"])&&(!is_numeric($_GET["I2C_min_freq"])||($_GET["I2C_min_freq"]<0)||($_GET["I2C_min_freq"]>400000000))) {print "\n**** Range error for \"I2C_min_freq\" (valid range from 0 to 400000000).\n";} ?> Hz          H/W design
// Maximum                         ";if (!is_null($_GET["I2C_max_freq"])&&(!is_numeric($_GET["I2C_max_freq"])||($_GET["I2C_max_freq"]<1)||($_GET["I2C_max_freq"]>400000000))) {print "\n**** Range error for \"I2C_max_freq\" (valid range from 1 to 400000000).\n";} ?> Hz          H/W design
// I2MOD(FLT)                      ";if (!is_null($_GET["I2MOD_FLT"])&&(!is_numeric($_GET["I2MOD_FLT"])||($_GET["I2MOD_FLT"]<0)||($_GET["I2MOD_FLT"]>1))) {print "\n**** Range error for \"I2MOD_FLT\" (valid range from 0 to 1).\n";} ?>             H/W design

  I2MOD(PDIV) I2BRG  Actual frequency
          0 =$v["I2C_min_freq"])?((f_actual_freq(0)<=$v["I2C_max_freq"])?((f_I2BRG(0)>=(($v["I2MOD_FLT"]==0)?3:6))?"Hz":"ERROR I2BRG too small"):"ERROR maximum not met"):"ERROR minimum not met"); ?>

          1 =$v["I2C_min_freq"])?((f_actual_freq(1)<=$v["I2C_max_freq"])?((f_I2BRG(1)>=(($v["I2MOD_FLT"]==0)?3:6))?"Hz":"ERROR I2BRG too small"):"ERROR maximum not met"):"ERROR minimum not met"); ?>

          2 =$v["I2C_min_freq"])?((f_actual_freq(2)<=$v["I2C_max_freq"])?((f_I2BRG(2)>=(($v["I2MOD_FLT"]==0)?3:6))?"Hz":"ERROR I2BRG too small"):"ERROR maximum not met"):"ERROR minimum not met"); ?>

          3 =$v["I2C_min_freq"])?((f_actual_freq(3)<=$v["I2C_max_freq"])?((f_I2BRG(3)>=(($v["I2MOD_FLT"]==0)?3:6))?"Hz":"ERROR I2BRG too small"):"ERROR maximum not met"):"ERROR minimum not met"); ?>



UPM Refresh Timing

=32) return 2;
if ($v["MPTPR_PTP"]>=16) return 4;
if ($v["MPTPR_PTP"]>=8) return 8;
if ($v["MPTPR_PTP"]>=4) return 16;
if ($v["MPTPR_PTP"]>=2) return 32;
 return 64; }
function f_MAMR_PTA () { global $v;
if (f_NCS_UPMA()==0) return INT_MAX;
 return round((f_BRGCLK()*$v[refresh_UPMA]*0.000001)/(f_upm_prescaler()*f_NCS_UPMA()));
}
function f_MBMR_PTB () { global $v;
if (f_NCS_UPMB()==0) return INT_MAX;
 return round((f_BRGCLK()*$v[refresh_UPMB]*0.000001)/(f_upm_prescaler()*f_NCS_UPMB()));
}
function f_UPMA_period () { global $v;
if (f_BRGCLK()==0) return BIG;
return (($v["MAMR_PTA"]*f_upm_prescaler()*f_NCS_UPMA())/f_BRGCLK())*1000000.0;
}
function BR0_MSeq2 () { global $v; return $v["BR0_MS"]==2; }
function BR0_MSeq3 () { global $v; return $v["BR0_MS"]==3; }
function BR0_MSeq0 () { global $v; return $v["BR0_MS"]==0; }
function BR1_MSeq2 () { global $v; return $v["BR1_MS"]==2; }
function BR1_MSeq3 () { global $v; return $v["BR1_MS"]==3; }
function BR1_MSeq0 () { global $v; return $v["BR1_MS"]==0; }
function BR2_MSeq2 () { global $v; return $v["BR2_MS"]==2; }
function BR2_MSeq3 () { global $v; return $v["BR2_MS"]==3; }
function BR2_MSeq0 () { global $v; return $v["BR2_MS"]==0; }
function BR3_MSeq2 () { global $v; return $v["BR3_MS"]==2; }
function BR3_MSeq3 () { global $v; return $v["BR3_MS"]==3; }
function BR3_MSeq0 () { global $v; return $v["BR3_MS"]==0; }
function BR4_MSeq2 () { global $v; return $v["BR4_MS"]==2; }
function BR4_MSeq3 () { global $v; return $v["BR4_MS"]==3; }
function BR4_MSeq0 () { global $v; return $v["BR4_MS"]==0; }
function BR5_MSeq2 () { global $v; return $v["BR5_MS"]==2; }
function BR5_MSeq3 () { global $v; return $v["BR5_MS"]==3; }
function BR5_MSeq0 () { global $v; return $v["BR5_MS"]==0; }
function BR6_MSeq2 () { global $v; return $v["BR6_MS"]==2; }
function BR6_MSeq3 () { global $v; return $v["BR6_MS"]==3; }
function BR6_MSeq0 () { global $v; return $v["BR6_MS"]==0; }
function BR7_MSeq2 () { global $v; return $v["BR7_MS"]==2; }
function BR7_MSeq3 () { global $v; return $v["BR7_MS"]==3; }
function BR7_MSeq0 () { global $v; return $v["BR7_MS"]==0; }
function f_UPMB_period () { global $v;
if (f_BRGCLK()==0) return BIG;
return (($v["MBMR_PTB"]*f_upm_prescaler()*f_NCS_UPMB())/f_BRGCLK())*1000000.0;
 }
?>
// BRGCLK                         
Hz          


// BR0(MS)                         ";if (!is_null($_GET["BR0_MS"])&&(!is_numeric($_GET["BR0_MS"])||($_GET["BR0_MS"]<0)||($_GET["BR0_MS"]>3))) {print "\n**** Range error for \"BR0_MS\" (valid range from 0 to 3).\n";} ?> 
H/W design
// BR1(MS)                         ";if (!is_null($_GET["BR1_MS"])&&(!is_numeric($_GET["BR1_MS"])||($_GET["BR1_MS"]<0)||($_GET["BR1_MS"]>3))) {print "\n**** Range error for \"BR1_MS\" (valid range from 0 to 3).\n";} ?> 
H/W design
// BR2(MS)                         ";if (!is_null($_GET["BR2_MS"])&&(!is_numeric($_GET["BR2_MS"])||($_GET["BR2_MS"]<0)||($_GET["BR2_MS"]>3))) {print "\n**** Range error for \"BR2_MS\" (valid range from 0 to 3).\n";} ?> 
H/W design
// BR3(MS)                         ";if (!is_null($_GET["BR3_MS"])&&(!is_numeric($_GET["BR3_MS"])||($_GET["BR3_MS"]<0)||($_GET["BR3_MS"]>3))) {print "\n**** Range error for \"BR3_MS\" (valid range from 0 to 3).\n";} ?> 
H/W design
// BR4(MS)                         ";if (!is_null($_GET["BR4_MS"])&&(!is_numeric($_GET["BR4_MS"])||($_GET["BR4_MS"]<0)||($_GET["BR4_MS"]>3))) {print "\n**** Range error for \"BR4_MS\" (valid range from 0 to 3).\n";} ?> 
H/W design
// BR5(MS)                         ";if (!is_null($_GET["BR5_MS"])&&(!is_numeric($_GET["BR5_MS"])||($_GET["BR5_MS"]<0)||($_GET["BR5_MS"]>3))) {print "\n**** Range error for \"BR5_MS\" (valid range from 0 to 3).\n";} ?> 
H/W design
// BR6(MS)                         ";if (!is_null($_GET["BR6_MS"])&&(!is_numeric($_GET["BR6_MS"])||($_GET["BR6_MS"]<0)||($_GET["BR6_MS"]>3))) {print "\n**** Range error for \"BR6_MS\" (valid range from 0 to 3).\n";} ?> 
H/W design
// BR7(MS)                         ";if (!is_null($_GET["BR7_MS"])&&(!is_numeric($_GET["BR7_MS"])||($_GET["BR7_MS"]<0)||($_GET["BR7_MS"]>3))) {print "\n**** Range error for \"BR7_MS\" (valid range from 0 to 3).\n";} ?> 
H/W design

//                                



// CS0                            



// CS1                            



// CS2                            



// CS3                            



// CS4                            



// CS5                            



// CS6                            



// CS7                            




// NCS                            



// MPTPR(PTP)                      ";if (!is_null($_GET["MPTPR_PTP"])&&(!is_numeric($_GET["MPTPR_PTP"])||($_GET["MPTPR_PTP"]<0)||($_GET["MPTPR_PTP"]>255))) {print "\n**** Range error for \"MPTPR_PTP\" (valid range from 0 to 255).\n";} ?>             H/W design
// Prescaler                      


Register Configuration Values from Specified Refresh Periods

// Refresh Period                  ";if (!is_null($_GET["refresh_UPMA"])&&(!is_numeric($_GET["refresh_UPMA"])||($_GET["refresh_UPMA"]<1)||($_GET["refresh_UPMA"]>10000))) {print "\n**** Range error for \"refresh_UPMA\" (valid range from 1 to 10000).\n";} ?>             micro-s     H/W design
// Refresh Period                              ";if (!is_null($_GET["refresh_UPMB"])&&(!is_numeric($_GET["refresh_UPMB"])||($_GET["refresh_UPMB"]<1)||($_GET["refresh_UPMB"]>10000))) {print "\n**** Range error for \"refresh_UPMB\" (valid range from 1 to 10000).\n";} ?> micro-s     H/W design
// MAMR(PTA)                      
            255))?"ERROR":""); ?>

// MBMR(PTB)                                  
255))?"ERROR":""); ?>


Actual Refresh Periods from Register Configuration Values

// MAMR(PTA)                       ";if (!is_null($_GET["MAMR_PTA"])&&(!is_numeric($_GET["MAMR_PTA"])||($_GET["MAMR_PTA"]<0)||($_GET["MAMR_PTA"]>255))) {print "\n**** Range error for \"MAMR_PTA\" (valid range from 0 to 255).\n";} ?>                         H/W design
// MBMR(PTB)                                   ";if (!is_null($_GET["MBMR_PTB"])&&(!is_numeric($_GET["MBMR_PTB"])||($_GET["MBMR_PTB"]<0)||($_GET["MBMR_PTB"]>255))) {print "\n**** Range error for \"MBMR_PTB\" (valid range from 0 to 255).\n";} ?>             H/W design
// Acual period                   
            micro-s     
// Acual period                               
micro-s     


General Purpose Timers


// GCLK2                          
Hz          
// TINx                            ";if (!is_null($_GET["TINx"])&&(!is_numeric($_GET["TINx"])||($_GET["TINx"]<0)||($_GET["TINx"]>400000000))) {print "\n**** Range error for \"TINx\" (valid range from 0 to 400000000).\n";} ?> Hz          H/W design

Timer Operated in 16 Bit Mode

// TMRx(ICLK)                      ";if (!is_null($_GET["TMRx16_ICLK"])&&(!is_numeric($_GET["TMRx16_ICLK"])||($_GET["TMRx16_ICLK"]<1)||($_GET["TMRx16_ICLK"]>3))) {print "\n**** Range error for \"TMRx16_ICLK\" (valid range from 1 to 3).\n";} ?>             S/W design
// TMRx(PS)                        ";if (!is_null($_GET["TMRx16_PS"])&&(!is_numeric($_GET["TMRx16_PS"])||($_GET["TMRx16_PS"]<0)||($_GET["TMRx16_PS"]>255))) {print "\n**** Range error for \"TMRx16_PS\" (valid range from 0 to 255).\n";} ?>             S/W design
// TMRx(FRR)                       ";if (!is_null($_GET["TMRx16_FRR"])&&(!is_numeric($_GET["TMRx16_FRR"])||($_GET["TMRx16_FRR"]<0)||($_GET["TMRx16_FRR"]>1))) {print "\n**** Range error for \"TMRx16_FRR\" (valid range from 0 to 1).\n";} ?>             S/W design
// TRRx(reference value)           ";if (!is_null($_GET["TRRx16_ref"])&&(!is_numeric($_GET["TRRx16_ref"])||($_GET["TRRx16_ref"]<0)||($_GET["TRRx16_ref"]>65535))) {print "\n**** Range error for \"TRRx16_ref\" (valid range from 0 to 65535).\n";} ?>             S/W design
// TMRx(OM)                        ";if (!is_null($_GET["TMRx16_OM"])&&(!is_numeric($_GET["TMRx16_OM"])||($_GET["TMRx16_OM"]<0)||($_GET["TMRx16_OM"]>1))) {print "\n**** Range error for \"TMRx16_OM\" (valid range from 0 to 1).\n";} ?>             S/W design

// Timer input frequency          
Hz          
// Timer resolution               
micro-s     
// Timer reference period         
ms          
// Timer rollover period          
ms          
// TOUTx period                   
ms          
// TOUTx low pulse                



Timer Operated in 32 Bit Mode

// TMRx(ICLK)                      ";if (!is_null($_GET["TMRx32_ICLK"])&&(!is_numeric($_GET["TMRx32_ICLK"])||($_GET["TMRx32_ICLK"]<1)||($_GET["TMRx32_ICLK"]>3))) {print "\n**** Range error for \"TMRx32_ICLK\" (valid range from 1 to 3).\n";} ?>             S/W design
// TMRx(PS)                        ";if (!is_null($_GET["TMRx32_PS"])&&(!is_numeric($_GET["TMRx32_PS"])||($_GET["TMRx32_PS"]<0)||($_GET["TMRx32_PS"]>255))) {print "\n**** Range error for \"TMRx32_PS\" (valid range from 0 to 255).\n";} ?>             S/W design
// TMRx(FRR)                       ";if (!is_null($_GET["TMRx32_FRR"])&&(!is_numeric($_GET["TMRx32_FRR"])||($_GET["TMRx32_FRR"]<0)||($_GET["TMRx32_FRR"]>1))) {print "\n**** Range error for \"TMRx32_FRR\" (valid range from 0 to 1).\n";} ?>             S/W design
// TRRx(reference value)           ";if (!is_null($_GET["TRRx32_ref"])&&(!is_numeric($_GET["TRRx32_ref"])||($_GET["TRRx32_ref"]<0)||($_GET["TRRx32_ref"]>4294967295))) {print "\n**** Range error for \"TRRx32_ref\" (valid range from 0 to 4294967295).\n";} ?>             S/W design
// TMRx(OM)                        ";if (!is_null($_GET["TMRx32_OM"])&&(!is_numeric($_GET["TMRx32_OM"])||($_GET["TMRx32_OM"]<0)||($_GET["TMRx32_OM"]>1))) {print "\n**** Range error for \"TMRx32_OM\" (valid range from 0 to 1).\n";} ?>             S/W design

// Timer input frequency          
Hz          
// Timer resolution               
micro-s     
// Timer reference period         
s           
// Timer rollover period          
s           
// TOUTx period                   
s           
// TOUTx low pulse                




RISC Timers

63) $rv=63;
return $rv; }
function f_RISC_exact_tick_period () { global $v;
if (f_GCLK2()==0) return BIG;
return 1000000.0/(f_GCLK2()/(1024.0*(1.0+f_RCCR_TIMEP()))); }
function f_RISC_range () { global $v;
return 65536.0*f_RISC_exact_tick_period()/1000000.0; }
function f_RISC_period_actual () { global $v;
return (($v["TM_CMD"]==0)?0x10000:$v["TM_CMD"])*f_RISC_tick_period()/1000000.0; }
function f_RISC_duty_cycle () { global $v;
return 100.0*($v["TM_CMD_even"]/(($v["TM_CMD_odd"]==0)?0x10000:$v["TM_CMD_odd"])); }
function f_RISC_pwm_resolution () { global $v;
return round(log(($v["TM_CMD_odd"]==0)?0x10000:$v["TM_CMD_odd"])/M_LN2); }
function f_RISC_pwm_freq () { global $v;
return 1000000.0/((($v["TM_CMD_odd"]==0)?0x10000:$v["TM_CMD_odd"])*f_RISC_tick_period()); }
?>
// GCLK2                          
Hz          

Tick period from RCCR(TIMEP) configuration

// RCCR(TIMEP)                     ";if (!is_null($_GET["RCCR_TIMEP"])&&(!is_numeric($_GET["RCCR_TIMEP"])||($_GET["RCCR_TIMEP"]<0)||($_GET["RCCR_TIMEP"]>63))) {print "\n**** Range error for \"RCCR_TIMEP\" (valid range from 0 to 63).\n";} ?>             S/W design
// RISC timers tick period        
micro-s     

RCCR(TIMEP) configuration from nominal tick period

// RISC timers nominal tick period ";if (!is_null($_GET["RISCT_period_nominal"])&&(!is_numeric($_GET["RISCT_period_nominal"])||($_GET["RISCT_period_nominal"]<0)||($_GET["RISCT_period_nominal"]>99999999))) {print "\n**** Range error for \"RISCT_period_nominal\" (valid range from 0 to 99999999).\n";} ?> micro-s     S/W design
// RCCR(TIMEP)                    

// Actual RISC timers tick period 
micro-s     
// RISC timers range              
s           

Simple Timer Mode

// TM_CMD(period)                  ";if (!is_null($_GET["TM_CMD"])&&(!is_numeric($_GET["TM_CMD"])||($_GET["TM_CMD"]<0)||($_GET["TM_CMD"]>65535))) {print "\n**** Range error for \"TM_CMD\" (valid range from 0 to 65535).\n";} ?>             S/W design
// Actual period                  
s           

PWM Timer Mode

// TM_CMD(period) even numbered    ";if (!is_null($_GET["TM_CMD_even"])&&(!is_numeric($_GET["TM_CMD_even"])||($_GET["TM_CMD_even"]<0)||($_GET["TM_CMD_even"]>65535))) {print "\n**** Range error for \"TM_CMD_even\" (valid range from 0 to 65535).\n";} ?> (($v["TM_CMD_odd"]==0)?0xFFFF:$v["TM_CMD_odd"])))?"ERROR":""); ?>
S/W design
// TM_CMD(period) odd numbered     ";if (!is_null($_GET["TM_CMD_odd"])&&(!is_numeric($_GET["TM_CMD_odd"])||($_GET["TM_CMD_odd"]<0)||($_GET["TM_CMD_odd"]>65535))) {print "\n**** Range error for \"TM_CMD_odd\" (valid range from 0 to 65535).\n";} ?>             S/W design
// Duty cycle                     
%           
// Approximate PWM resolution     
bits        
// PWM frequency                  
Hz          




[ PPCMB/850 products | ABCD Proto-Kernel(tm) software | FlashCnL software | GCC-MPC8xx free compiler binaries | Industry Links ]

[ CONNOTECH home page: http://www.connotech.com | e-mail to: info@connotech.com ]


CONNOTECH Experts-conseils Inc.
9130 Place de Montgolfier
Montréal, Québec, Canada, H2M 2A1
Tél.: +1-514-385-5691
Fax: +1-514-385-5900
(click here for some archived contents, related to e-commerce security and authentication outside of the computer world)