音影先锋亚洲天堂网|电影世界尽头的爱完整版播放|国产 熟女 91|高清无码免费观看欧美日韩|韩国一区二区三区黄色录像|美女亚洲加勒比在线|亚洲综合网 开心五月|7x成人在线入口|成人网站免费日韩毛片区|国产黄片?一级?二级?三级

29K_SUPMODE Datasheet

  • 29K_SUPMODE

  • Am29030 and Am29035 Microprocessors Defining a Trap to Switc...

  • 2頁

  • ETC

掃碼查看芯片數(shù)據(jù)手冊

上傳產(chǎn)品規(guī)格書

PDF預(yù)覽

AMD
29K
鈩?/div>
Family
Technical
Bulletin
Purpose
Affected Parts
Defining a Trap to Switch to Supervisor Mode
April 28, 1994
EPD Technical Support Hotline
This bulletin explains how to place a 29K Family
microprocessor or microcontroller in supervisor
mode.
trap, the processor copies the contents of the OPS
register into the CPS register.
So, if the user-defined trap sets the SM bit in the OPS
register, the contents of OPS are copied into the CPS
register on return from the trap. This keeps the
processor in supervisor mode after returning from the
trap.
Example Code
The information in this bulletin affects the following
parts:
Device
Revision
Am29000, Am29005, Am29030,
Am29035, and Am29050
microprocessors
Am29200, Am29205, Am29240,
Am29243, and Am29245
microcontrollers
All
All
Supervisor Mode
To switch a 29K Family processor to supervisor
mode, the SM bit in the Current Processor Status
(CPS) register must be set. But because the CPS
register is a protected special-purpose register, it may
not be modified when the processor is running in user
mode.
However, when a trap is taken in a 29K Family
processor, the processor is placed in supervisor mode.
Because of this behavior, a user-defined trap can be
used to switch the processor to supervisor mode.
Switching to Supervisor Mode
The following example consists of two files, one
written in C (trapit.c) and the other written in 29K
Family assembly language (mytrap.s). The file
written in C contains the call to
settrap()
used to
install the trap handler that sets the SM bit. Once the
trap handler has been installed, an assembly language
routine is called that will cause the newly installed
trap to be asserted. Any code that is executed after
this user-defined trap is asserted will execute in
supervisor mode.
The 29K assembly language file contains the source
code for the user-defined trap handler as well as a
function that, when called, will cause the user defined
trap to be asserted.
trapit.c
#include <stdio.h>
#include <hif.h>
extern void super_mode(void);
extern void as70(void);
void howdy() {
int i;
for(i=0;i<=10;i++)
printf("Hello!\n");
}
main() {
_settrap(70,&super_mode);
as70();
howdy();
}
The
settrap()
host interface (HIF) service can be
used to define a trap. At this point, you are in
supervisor mode. However, you need the processor to
remain in supervisor mode when returning from the
trap.
Remaining in Supervisor Mode
When a trap is taken, a 29K Family processor copies
the contents of the CPS register into the Old
Processor Status (OPS) register. On return from this
PID No. 18416A/0
1 of 2

29K_SUPMODE相關(guān)型號PDF文件下載

  • 型號
    版本
    描述
    廠商
    下載
  • 英文版
    JTAG Boundary Scan Initialization on the AMD 29K Family
    ETC
  • 英文版
    JTAG Boundary Scan Initialization on the AMD 29K Family
  • 英文版
    Synchronizing *RESET and BOOTW to Avoid Misconfiguring ROM B...
    ETC
  • 英文版
    Synchronizing *RESET and BOOTW to Avoid Misconfiguring ROM B...
  • 英文版
    on an Am29030 Microprocessor Design Using Slow Peripherals w...
    ETC
  • 英文版
    on an Am29030 Microprocessor Design Using Slow Peripherals w...
  • 英文版
    Am29030 and Am29035 Microprocessors Defining a Trap to Switc...
    ETC
  • 英文版
    Am29030 and Am29035 Microprocessors Defining a Trap to Switc...

掃碼下載APP,
一鍵連接廣大的電子世界。

在線人工客服

買家服務(wù):
賣家服務(wù):
技術(shù)客服:

0571-85317607

網(wǎng)站技術(shù)支持

13606545031

客服在線時間周一至周五
9:00-17:30

關(guān)注官方微信號,
第一時間獲取資訊。

建議反饋

聯(lián)系人:

聯(lián)系方式:

按住滑塊,拖拽到最右邊
>>
感謝您向阿庫提出的寶貴意見,您的參與是維庫提升服務(wù)的動力!意見一經(jīng)采納,將有感恩紅包奉上哦!