欧美成人黄色网_欧美精品久久_国产在线一区二区三区_免费视频久久久_亚洲二区视频_欧美大片免费高清观看

產(chǎn)品分類

當前位置: 首頁 > 傳感測量產(chǎn)品 > 數(shù)據(jù)采集產(chǎn)品 > 數(shù)據(jù)通訊產(chǎn)品 > 現(xiàn)場總線/網(wǎng)關

類型分類:
科普知識
數(shù)據(jù)分類:
現(xiàn)場總線/網(wǎng)關

直接測量微處理器總線時鐘的程序

發(fā)布日期:2022-04-18 點擊率:85

  用單控制環(huán)檢驗HC08 SCS08微處理器的總線頻率。

  Freescale公司的HC08和更新的HCS08微處理器系列具有通用外圍模塊。時鐘發(fā)生器也不例外。其范圍從任意I/O引腳的內(nèi)部時鐘到外部晶體或晶振。一旦選擇了時鐘源,可以有多種控制最終總線頻率的選擇。例如,為MC9S08GB微處理器連接一個32,768Hz的晶體,允許使用FLL(鎖頻環(huán))產(chǎn)生最多18.874 MHz的總線頻率。選擇源、除數(shù)和FLL允許多功能且復雜的設置。

  一旦寫入總線時鐘初始化程序,在繼續(xù)工程其它部分之前,也許想檢驗總線是否以期望的速度運行。本設計方案給出在任意I/O端口以總線1/9的精確速度輸出方波的程序(清單1和清單2)。僅連接一個頻率計數(shù)器到這個管腳,顯示總線頻率。只需做的是將小數(shù)點向右移動一位。一旦檢驗總線速度,可以信賴的寫定時器、串行I/O和其他時鐘有關的程序。

  只需要寫代碼,首先關中斷和關COP(共有片上處理器)。在總線時鐘初始化程序中,確保將想要使用的I/O端口初始化為輸出。然后,只跳到toggle clock,輸出總線頻率除10,直到斷電。本設計方案使用HC08版的PB0(

清單1)和HCS08版的PD0(清單2)。通過改變第一條線確定端口和第二條線選擇位,可以使用任何適合的I/O端口。本設計方案也命名了老符號PB的端口,替代如今常用的PTB。

  英文原文:

  Routines directly measure microcontroller-bus clock

  You can verify the bus frequency of the HC08 SCS08 microcontroller with simple control loops.

  Kerry Erendson, Bulova Technologies; Edited by Charles H Small and Fran Granville -- EDN, 10/25/2007

  The Freescale HC08 and newer HCS08 microcontroller families have versatile peripheral modules. Their clock generators are no exceptions. They range from the internal clock, which frees I/O pins, to external crystals or oscillators. once you selec the timing source, you have many options for controlling the final bus frequency. For instance, connecting a 32,768-Hz crystal to an MC9S08GB microcontroller allows you to use the FLL (frequency-locked loop) to generate many bus frequencies as high as 18.874 MHz. Selecting the source, the divisors, and the FLL settings allows versatility but also can get complicated.

  once you write the bus-clock-initialization routine, you may want to verify that the bus is running at the speed you intend before moving on to the rest of the project. This Design Idea presents routines that output a square wave at exactly one-tenth the bus speed on any I/O port (Listing 1 and Listing 2). Just connect a frequency counter to this pin, and it will display your bus frequency. All you have to do is move the decimal point one place to the right. once you verify the bus speed, you can confidently write the timer, serial-I/O, and other clock-dependent routines.

  You need to write code only to first disable interrupts and disable the COP (common on-chip processor). In your bus-clock-initialization routine, be sure to initialize the I/O port you want to use as an output. Then, just jump to the toggle clock, which outputs the bus frequency divided by 10 until power-down. This Design Idea uses PB0 in the HC08 version (Listing 1) and PD0 in the HCS08 version (Listing 2). You can use any available I/O

port by altering the first line to identify the port and the second line to choose a bit. Also, this Design Idea names ports with the older notation PB, instead of today’s more fashionable PTB.

 

下一篇: PLC、DCS、FCS三大控

上一篇: 索爾維全系列Solef?PV

推薦產(chǎn)品

更多
主站蜘蛛池模板: a天堂一码二码专区 | 天堂网在线.www天堂在线 | 边啃奶头边躁狠狠躁玩爽在水里面 | 欧美久久一区二区三区 | 国产蜜汁tv福利在线 | 亚洲精品中文字幕乱码一区二区 | 亚洲精品国精品久久99热 | 东京热一精品无码av | 国产zzjjzzjj视频全免费 | 国产精品国产成人国产三级 | 欧美日本亚洲国产一区二区 | 国产精品无码av在线播放 | 男女性杂交内射妇女bbwxz | 啦啦啦www在线观看免费视频 | 国产精品久久久久久人妻无 | 亚洲欧美国产视频 | 国产精品成人3p一区二区三区 | 日韩欧美中文字幕在线播放 | 妺妺窝人体色www聚色窝仙踪 | 国产亚洲精品日韩综合网 | 中文字幕精品久久久久人妻 | 亚洲欧美国产精品久久久 | 69精品丰满人妻无码视频a片 | 熟妇人妻va精品中文字幕 | 99久久99这里只有免费费精品 | 久久国产高潮流白浆免费观看 | 暗呦交小u女国产精品视频 凹凸国产熟女精品视频 | 午夜神马福利免费官方 | 欧美性欧美巨大黑白大战 | aaaaaa级特色特黄的毛片 | 波多野结衣av手机在线观看 | 新版资源天堂中文 | 日本电影一区二区三区 | 久久丫精品国产亚洲av | 自拍偷拍在线视频 | 一级做a爱片久久毛片 | 2019日韩中文字幕mv | 韩国免费a级片 | 免费看欧美毛片大片免费看 | 国产精品久久久久久麻豆一区 | 欧美疯狂黑人xxxxbbbb |