Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Reneas R8C/25 - C Programming - Access to bank 0 and 1 regs

Status
Not open for further replies.

Ninochip

Newbie level 4
Joined
Jan 5, 2010
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Europe
Activity points
1,372
Hi all,
I'm programming a Renesas R8C/25 with IAR compiler. The uC is done with 2 banks registers. Each bank is selectable through a B flag. Although compiling with high optimization, debugging my code I notice bank 1 is never used. Someone said me it should be possible to tell the compiler to use bank 1 as a RAM stack during interrupt services, let's say to switch bank during an interrupt call to use bank 1 registers and to switch again to bank 0 at the end, avoiding pops from stacks and increasing performance.

Has anyone a suggest or faced this problem?

Thx,
Nino
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top