ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Понедельник
20 мая
31992 Топик полностью
=mse= (02.06.2005 16:18, просмотров: 1) ответил Irina на Подскажите как подключить внешнюю память
Вот 
.equ    porta_direct_word               =0b11111111
.equ    porta_state_word                =0b00000000
.equ    portc_direct_word               =0b11111111
.equ    portc_state_word                =0b00000000



        ldi     temporary1,porta_direct_word
        out     ddra,temporary1
        ldi     temporary1,porta_state_word
        out     porta,temporary1

        ldi     temporary1,portc_direct_word
        out     ddrc,temporary1
        ldi     temporary1,portc_state_word
        out     portc,temporary1


        ldi     temporary1,(1**sre);+(1**srw11) ;enable XRAM,upper sector
        out     mcucr,temporary1                ; utilise 3ws srw11:10=1:0
        ldi     temporary1,(1**srw11)           ; lower sector N/A, upper
        sts     xmcra,temporary1                ;sector mapped $1100-$ffff
        sts     xmcrb,zero_reg

в указанном секторе вэйтстэйты - 3 такта. **заменяет два "<"(хтмл не разрешает)