Q uestion:
Current Smart's argorithm use many RAM (1 var needs another 2 spaces to store the bcd).
but this argothm seems use less ROM, it use array to store the reply sequence.
R equirement:
When sending RMS reply data out, cannot blok the other job. so program is only allowed to
send one byte out in one "loop".
S olution:
Use txqueue to queue the output data, and Tx interrupt driven output (a basic method for output).
Rms module:
if( qIsEmpty() )
. needSpace=0;
. if( (seq+=elemlen)>hasBeenSent) ) {
. if( (needSpace+=elemlen) < qSpace() ) {
. .... sendOutThisElement......
. hasBeenSent+=elemlen;
. }else{
. goto _exit;
. }
. }else{
. goto _exit;
. }
}
needSpace : local
.....the data has been added to queueu in this time.
seq : local
.....the data sequence number of this "elememt"
hasBeenSent : static
......the data sequence number has been sent.
elemlen : const , property
,......the data length of this "element"
網誌存檔
-
▼
2004
(552)
-
▼
4月
(73)
- New Smart CxU - 又翻盤
- 2.2pr8 release ?
- QE post an alarm : 2.3pr2 not ready !!
- 今天的麵包蠻好吃的
- memo : load script for download
- MF test : SxR00 alarm appears again.. and...many o...
- pdc test project 0 ok
- New Smart CxU 討論
- New smart Project start !!
- CPU Selection... Final
- Another Solution : RMS.. for sxrcxu
- Solution for Rms replyi..
- PC 太多了!
- max's new pc has come...
- Stupid! CommErr & ID reset.
- 原來右邊的Link可以自己加
- Got it 1! BDM Multilink
- Chris just called...
- Wait ... to be done
- Memo:Meeting:4/29
- 又申請一個blog,為了申請Gmail
- Busy day - so many thins to do....
- bxrxn got virused.
- try At91 PDC...
- modbus : finish UI -- hyperterminal & Lcd
- Again : SxR switch off, show ACUNB alarm
- Again: QE alarm type set... ACF & ACSW
- +modbus
- 翻譯完成
- luo hong's question
- Another Parameter Range Problem:
- great! 9S12C32
- 討論完又包新的工程
- memo: about MC9S12E64CFU
- rains hard
- 星期五下午3:00,作一些沒系統的工作。
- memo -
- call pxcoII, check project update condition, moto
- KM,要有K才能M
- CPU選型
- 今天完成的工作
- 事情好多..
- 上次體檢結果
- Nothing Special
- 以大早就到ATM前...
- 明天要作的事:
- BUG! LTSD not follow option to operate
- EventCode又有問題!
- RMS 0x85...和新增event
- DCE_NO_DC的問題
- 小修改flashloader3
- TxPolling的flashloader ice可以動了。
- Tx改polling
- ICE過了,剩下...
- 找到了!
- 回到flashloader..
- 繼續...
- 改回去了,舊的還是不能看
- ���٬O�אּunicode�n�F
- ���I�A��診�@�g�S�ܦ��ýX�C
- Keep going .. flashloader
- �o��encoding�u�O�_�ǡC
- ???H???n????....
- ��ӳo��blog host�ٮ����W��
- AV誕生20年---轉貼
- �u�O�w��
- 這個site好像是用當地時間,跟我這邊的時間都不一樣, 現在是PM 6:43。 結果呢?
- OK,做好了TXRX的INT測試範例。 同時為了測試剛剛抄的queue的code,把兩個合併成:23...
- Porting Loader的queue時,發現ads沒有malloc.h,但是有alloca.h...
- 要寫FlashLoader需要XModemDownload 要寫XModemDownload需要PQ...
- 奇怪:sbc5272.ld 宣告ram size 4 M MEMORY { ram(rwx) ...
- 預計要寫 ARM的flash loader程式。 改寫 JTAG ARM 的program,由固定...
- 好像停了一段時間,好不容易又可以進來。
-
▼
4月
(73)
沒有留言:
張貼留言