ÀÛ¼ºÀÏ : 03-06-12 21:14
[re] CS(chip select)½ÅÈ£ - ±¸ Q&A¿¡¼ ¿Å±ä±ÛÀÔ´Ï´Ù
|
|
±Û¾´ÀÌ :
¿î¿µÀÚ ¸ÞÀÏ¹ß¼Û : ¿î¿µÀÚ
 Á¶È¸ : 6,997
|
´ÙÀ½Àº 0x40000 ¹øÁö¿¡ data¸¦ writeÇÏ´Â ÇÁ·Î±×·¥ÀÔ´Ï´Ù.
---- ´ÙÀ½ ----
BUSCON1 = 0x4480; // CS_ signal is independent of the write command
// CS_ signal is generated for the duration of the read command
// External bus cycle is controlled by bit field MCTC only
// External bus enable
// 16-bit De-multiplexed Bus
ADDRSEL1 = 0x0400; // Assign 4Kbyte external memory
DPP0 = 0x0010; // <- segment 4
lmem_ write(0x40000, 0x00);
DPP0 = 0x0000; // <- segment 0
-------------------------------------
Reset½Ã CS line°ú segment address line ±¸¼º
CSSEL "00" <- 3CS_line: CS2_..CS_0
SALSEL "00" <- 4bit segment address: A19..A16
Compiler ¼ÂÆÃºÎºÐµµ °ËÅäÇØ º¸¼¼¿ä
Tasking CompilerÀÇ °æ¿ì,
EDE->Bus Configuration->Buscon1&Addrsel1
|
|