PDA

View Full Version : Nmiy 8031


hsukiang
02-24-02, 10:10 PM
hi,

i m using the NMIY 8031 to turn on some relays and LED, to sense high and low signals.

my question is, can i use franklin c51 to compile to obj file and hex file and download to the nmiy board?
if so, how do i go bout addresing the memory of U3?

the other question is usng small C...how can i use the sbit to declare each pin of the 8031 so tht i can send out high signal to poer up my relays and LED?

please advice...
thank you!

yours sincerely
hsukiang

nmitech
02-25-02, 11:49 AM
how do i go bout addresing the memory of U3?
NMIY-0031 Memories decode,
U2: 0x0000 - 0xFFFF (Program only)
U3: 0x8000 - 0xFBFF (Program/Data)
U4: 0x0000 - 0x7FFF (Data only)

can i use franklin c51 to compile to obj file and hex file and download to the nmiy board?
Sure you can, as long as your code and Data segment specify in your program is setup accordingly with the memory map shows above.

how can i use the sbit to declare each pin of the 8031 so tht i can send out high signal to poer up my relays and LED?
You can add the assembly instruction(s) within SmallC Program. Ie,
setP1_0()
{
#asm
SETB P1.0
#endasm
}