반응형
pic 입문자입니다. 들어만봤지 구경해 본적은 없습니다.
asm 파일 하나 있는데 c로 컨버젼 해야합니다.
오 신이시여 -_- 7천여줄 보니까 머리가 지끈지끈 눈은 빠질려고 합니다.
휴.

자료도 없고 물어볼 사람도 없고 ㅋㅋㅋ 찾은 카페는 1달 있어야 등업 해준다 합니다. 꺅.

모르겠습니다.
뭐 그냥 삽질모드 돌입.

질문.

asm 파일을 보는데 BANK가 어쩌구 저쩌구 하두 그래서 뭔가 해서 찾아봤는데 기초적인건지 정확한 설명을 못찾겠더라구요.

RAM 구조가 BANK0, BANK1, BANK2, BANK3으로 나누어져 있다.
변수 선언시 표시해 줘야 한다.

고 하네요. 이게 한계.

데이터시트 끄적여 찾아보니까 이렇게 나옵니다.

2.2 Data Memory Organization
The data memory (see Figures 2-2 and 2-3) is
partitioned into four banks which contain the General
Purpose Registers (GPR) and the Special Function
Registers (SFR). The Special Function Registers are
located in the first 32 locations of each bank. The
General Purpose Registers, implemented as static RAM,
are located in the last 96 locations of each Bank.
Register locations F0h-FFh in Bank 1, 170h-17Fh in
Bank 2 and 1F0h-1FFh in Bank 3, point to addresses
70h-7Fh in Bank 0. The actual number of General
Purpose Resisters (GPR) implemented in each Bank
depends on the device. Details are shown in Figures 2-5
and 2-6. All other RAM is unimplemented and returns ‘0’
when read. RP<1:0> of the STATUS register are the
bank select bits:
RP1 RP0
0 0 →Bank 0 is selected
0 1 →Bank 1 is selected
1 0 →Bank 2 is selected
1 1 →Bank 3 is selected
반응형

'Study > uCom' 카테고리의 다른 글

[asm] [질문] MOVLW, SUBWF  (1) 2009.06.03
[asm] [질문] EQU .0 은 뭘 의미하는걸까?  (11) 2009.05.29
[PIC초보] [질문] 컴파일 에러 대체 왜나?  (0) 2009.05.28
블로그 이미지

윤뽀

일상, 생활정보, 육아, 리뷰, 잡담이 가득한 개인 블로그. 윤뽀와 함께 놀아요. (방긋)

,