Robofun 機器人論壇

 找回密碼
 申請會員
搜索
熱搜: 活動 交友 discuz
樓主: marbol
打印 上一主題 下一主題

機器蟲hexapod的零件-串列伺服機控制板自製達成

[複製鏈接]
1#
發表於 2006-6-1 23:53:01 | 顯示全部樓層
如果運用CPLD或FPGA設計可載入預設值式的計時器陣列,應該有可能達到更多輸出吧:P
如設計一個高時脈循環狀態機,每一個週期掃一次計時暫存器的值並遞減或遞增,為0或溢位時就改變輸出狀態,以一般CPLD的2~30Mhz運作速度(還有可能更高..80Mhz..@@)絕對有辦法輸出週期小於1uS的近並列PWM輸出...
不過我也還在研究...希望能弄出獨立式硬體PWM陣列....
2#
發表於 2006-6-3 05:00:11 | 顯示全部樓層
架構修改一下後..可以用74373做簡單的IO延伸輸出...透過共用匯流排傳輸PWM的資料...8051內部則運用TIMER+暫存器orRAM做虛擬計時器...每次把所有暫存器的值讀出、運算、回存和輸出計時終了訊號
 |        ˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍ
 |-------|74373 陣列  |第二組LATCH  |≡
8|PWM BUS|          |同步化所有PWM  |≡ 多組PWM同步輸出
0|-------| 預先拴鎖     |的信號       |≡
5|==控制信號==|ˍˍˍˍˍˍˍˍˍ|ˍˍˍˍˍˍˍˍˍˍ|≡
1|
 |
 |



Start

掃瞄N個計時暫存器@記憶體
(Load Data[N]→DJNZ Data,PWM_CHG→SCAN_NEXT↑Load Data[N+1])

PWM_CHG
(determine PWM_Data#N→Latch PWM status to first 74373 arrays→Load Data preset[N]→if(N==Last data)→↓PWM_Latch_Complete→else↑)

PWM_Latch_Complete
(Output status→Latch second 74373 arrays→Output current PWM status)

Restart PWM cycles

不過這個方式需要更多處理器時間...所以比較適合高時脈的處理器...至少要40Mhz以上...優點是所有輸出都是同步執行...並且所有計數器都處於計時模式,不浪費處理器時間,最高可達1/2內部RAM輸出(HI、LO各佔一組Byte)。

華邦有出一款高速51: W78E51-40 ,應該蠻適合做這個應用...不行的話還有PIC的MCU,最高速可以達到40MIPS...輸出可到數Mhz...>w<

[ 本帖最後由 omegaCD 於 2006-6-3 06:56 編輯 ]
3#
發表於 2006-6-14 10:36:50 | 顯示全部樓層
原帖由 chamber 於 2006-6-14 10:12 發表
各位大大:

          最近也想買一些伺服機來玩一些花樣,看到各位大大的成果,也覺得蠻好玩的。
個人是想結合一些新花樣,像LED 或音樂的東西。
         因為,目前在完一顆多核心的單晶片。他可以很輕易 ...

這個晶片搭配最佳化的演算法對視覺辨識的資料模式處理很有幫助...因為可以一次辨識多個區域再用一顆整合起來...這個東西在機器人應用簡直是如魚得水阿....
不知要如何玩到...拜讀了您的介紹看的小的心裡癢癢的...
以前要搞多顆處理器透過"超慢"共用匯流排執行,現在通通可以不用管了,直接用這個微控制器搞定...

這顆處理器的多工根本不用弄啥作業系統...直接指派工作給其他處理器就好了...多方便阿...>w<
4#
發表於 2006-6-15 01:03:49 | 顯示全部樓層
找到一個稱作"eTPU"的特殊微控制器硬體(和主核心各為獨立的內建裝置,eTPU有自己的處理器)....貼來給各位大大看看..:3

http://www.freescale.com/webapp/ ... LC6807&tid=tcnl
The eTPU is a programmable I/O controller with its own core and memory system, allowing it to perform complex timing and I/O management independently of the CPU. The eTPU is essentially an independent microcontroller designed for timing control, I/O handling, serial communications, motor control and engine control applications.

The eTPU is an enhanced version of the TPU module implemented on the MC68332 and MPC500 products. Enhancements of the eTPU include a more powerful processor, which handles high-level C code efficiently and allows for more functionality and increased performance.

Freescale provides an eTPU functions library that is a superset of the standard TPU library functions. These, along with an available C compiler, make it relatively easy to port older applications to the eTPU. By providing source code of the eTPU library, developers are able to create customized functions for specific applications.

Event triggered RISC like processor and timer subsystem
Up to 32 channels per module, with the possibility of multiple modules per device
Double Action hardware timer channels (Input Capture/Output Compare)
24-bit hardware timer resolution
Up to 64K bytes of code memory and 4K bytes data memory (actual amount implemented varies by product)
Flexible allocation of data memory per function
Angle mode support (provide angle reference for engine and motor control applications
DMA and interrupt request support
Debug support
General Timing Functions:
Full Featured and Synchronized PWM, Input Capture/Output Compare (Protected Output Compare), Pulse and Frequency Measurement, Pulse/Period Accumulate, Stepper Motor, Queued Output Match for Complex Outputs, GPIO

Communication Functions:
SPI, UART, UART with Flow Control, plus Proprietary Protocols

Motor Control Functions:
Stepper Motor, DC Motor, Brushless DC Motor, Permanent Magnet Synchronous Motor and AC Induction Motor (including speed control), Current Control, Vector Control techniques

Engine Control Functions:
Engine Position, Spark and Dwell Time, Angle Toggle, Speed Measurement, Knock Window, Angle Toggle

對於PWM或有計時需求的應用這種模組非常有用...而且也有通訊能力...0v0a

[ 本帖最後由 omegaCD 於 2006-6-15 01:09 編輯 ]
5#
發表於 2006-7-24 15:07:32 | 顯示全部樓層
24PI=24Mhz, Plastic DIP Package, Industrial class
24兆赫,塑膠雙排接腳封裝,工業等級 ..:)
詳情看資料手冊第16頁: http://www.atmel.com/dyn/resources/prod_documents/doc0368.pdf

[ 本帖最後由 omegaCD 於 2006-7-24 15:09 編輯 ]
您需要登錄後才可以回帖 登錄 | 申請會員

本版積分規則

小黑屋|手機版|Archiver|機器人論壇 from 2005.07

GMT+8, 2024-5-17 07:32 , Processed in 0.138318 second(s), 7 queries , Apc On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表