|
技術(shù)交流 | 電路欣賞 | 工控天地 | 數(shù)字廣電 | 通信技術(shù) | 電源技術(shù) | 測(cè)控之家 | EMC技術(shù) | ARM技術(shù) | EDA技術(shù) | PCB技術(shù) | 嵌入式系統(tǒng) 驅(qū)動(dòng)編程 | 集成電路 | 器件替換 | 模擬技術(shù) | 新手園地 | 單 片 機(jī) | DSP技術(shù) | MCU技術(shù) | IC 設(shè)計(jì) | IC 產(chǎn)業(yè) | CAN-bus/DeviceNe |
請(qǐng)問(wèn)如果要用at90s8515代替8051,需要注意什么 |
作者:davidjiang 欄目:單片機(jī) |
現(xiàn)在我想把DS2155 START KIT中的8051改為90S8515,復(fù)位電路已改。但是我用ICE200仿真時(shí),無(wú)法讀寫DS2155中的頭十六位REGISTERS.用AVR STUDIO 4 的SIMULATION證明程序是好的?梢詫懽x0X0260,不知道還需要改一些什么才可以。另外我在考慮是否和速度有關(guān),各位如果有時(shí)間希望給個(gè)建議。 DS2155的地址MAP:0000-0FFF. #ifndef _NEC_2155_H_ #define _NEC_2155_H_ //--------------- external SRAM -------------- #define MSTRREG 0x0 #define IIR1 0x14 #define IIR2 0x15 #define T1RCR1 0x03 #define T1RCR2 0x04 #define T1TCR1 0x05 #define T1TCR2 0x06 #define T1CCR1 0x07 #define T1RDMR1 0x0C #define T1RDMR2 0x0D #define T1RDMR3 0x0E #define INF01 0x10 #define _TS1 0x50 #define _RS1 0x60 #define _SR1 0x16 #define _SR2 0x18 #define IMP2 0x19 //---------------- internal SRAM -------------- #define IBUF 0x60 #define RBUF 0x68 //---------------- define PORTB pin ----------- #define POWER 0 #define ACTIVE 1 #define SYNC 3 #define EXTINT1 6 #define OFFHKCH1 7 //--------------- define const VALUE --------- #define RESET 0 #define ENABLE 1 #define DISENABLE 0 #define LED_ON 1 #define LED_OFF 0 #define SET_INPUT 0x00 #define SET_OUTPUT 0xff #define INIT_PORTD_DIR 0xc4 //#define SoftReset() (((void(*)(void))(CHAR *)0x0000)()) /* soft reset for the cpu*/ //------------- define GLOBAL variable ------- uint8_t tout=0; //------------- declare functions ------------ void T1_INIT(void); void T1_TS_REG_12_INIT(void); /*====================================== 8M Delay = 0.125 *((tt*4-1)+9) =0.5tt + 1 (us) __asm__("jiangtao: subi R16" // 1t " nop" // 1t " brne jiangtao" // 2t/1t " nop" // 1t " ret"); // 4t ======================================*/ static void delay(unsigned LONG t) { __asm__ volatile( "L_%=: \n\t" \ "dec R25 \n\t" \ "nop \n\t" \ "brne L_%= \n\t" \ "nop \n\t" \ "ret \n\t" \ : \ : "r" (t) \ ); \ } //*************before main function initialize ------- //void my_init (void) __attribute__ ((naked)) \ // __attribute__ ((section (".init1"))); //------------- define DS2155 configuration register table ------- unsigned CHAR InitTable[]={ 0x00,0x00, /* MSTRREG */ 0x01,0x80, /* IOCR1 */ 0x02,0x00, /* IOCR2 */ 0x03,0x0c, /* T1RCR1 */ 0x04,0x64, /* T1RCR2 */ 0x05,0x30, /* T1TCR1 */ 0x06,0x80, /* T1TCR2 */ &nbs |
2樓: | >>參與討論 |
作者: davidjiang 于 2003/6/13 9:58:00 發(fā)布:
nobody can help me? |
3樓: | >>參與討論 |
作者: zsmbj 于 2003/6/13 10:05:00 發(fā)布:
注意:8515的外部地址從0x260開(kāi)始。 |
4樓: | >>參與討論 |
作者: davidjiang 于 2003/6/13 10:23:00 發(fā)布:
程序里是從0x260開(kāi)始的,woyong |
5樓: | >>參與討論 |
作者: davidjiang 于 2003/6/13 10:25:00 發(fā)布:
程序里是從0x260開(kāi)始的,我用ramend+1既是0x260 |
6樓: | >>參與討論 |
作者: davidjiang 于 2003/6/13 11:50:00 發(fā)布:
I check the website, I know the reason. Hi Guy, I check the website, I know the reason. Author: sellis (Sean Ellis) ( sellis@superscape.com) Date: Mar 11 02, 10:01 If you have external RAM mapped from 0x0000 to 0x7FFF, then the addresses 0x0000 - 0x025F would never be accessed externally since they are the internal RAM locations. Sean. |
7樓: | >>參與討論 |
作者: weihua 于 2003/6/13 15:59:00 發(fā)布:
注意8051,7,8塊,8515,20多塊 |
8樓: | >>參與討論 |
作者: 雙龍老耿 于 2003/6/15 18:24:00 發(fā)布:
8051你單獨(dú)好用嗎?8051是掩模的,賣了也只能當(dāng)8031用! http://www.sl.com.cn |
|
|
免費(fèi)注冊(cè)為維庫(kù)電子開(kāi)發(fā)網(wǎng)會(huì)員,參與電子工程師社區(qū)討論,點(diǎn)此進(jìn)入 |
Copyright © 1998-2006 www.udpf.com.cn 浙ICP證030469號(hào) |