Altium Designer原理图与PCB设计及仿真配套光盘
Altium Designer原理图与PCB设计及仿真配套光盘实例,原理图、PCB布板图
代码片段和文件信息
/**************************************************************************
|* Startup code automatically generated and updated by:
|* TASKING 1.119r1 (build version: 1.41)
|* Do not edit unless switching off the automatic generation
|* checkbox in Project | Project Options | Processor | Startup Code
|*
|* Copyright 2001-2004 Altium BV
*/
#ifndef P0
# define P0 (*(__bsfr volatile unsigned char *)0x80)
#endif
#ifndef SP
# define SP (*(__sfr volatile unsigned char *)0x81)
#endif
#ifndef ROMSIZE
# define ROMSIZE (*(__sfr volatile unsigned char *)0x8F)
#endif
#ifndef P1
# define P1 (*(__bsfr volatile unsigned char *)0x90)
#endif
#ifndef XP
# define XP (*(__sfr volatile unsigned char *)0x9F)
#endif
#ifndef P2
# define P2 (*(__bsfr volatile unsigned char *)0xA0)
#endif
#ifndef P3
# define P3 (*(__bsfr volatile unsigned char *)0xB0)
#endif
#ifndef PSW
# define PSW (*(__bsfr volatile unsigned char *)0xD0)
#endif
extern void _init( void );
extern int main( int argc );
extern void _exit( void );
#pragma weak _Exit
#pragma alias _Exit = _exit
extern char __idata _lc_bs[]; /* system stack begin label */
extern char __xdata * __data _SP;
extern char __xdata _lc_ue_vstack_xdata[];
/* Force this section to be named ‘_start‘ it then will be located
* in the first block of 256 bytes in code space by using LSL.
*/
#pragma section code=-f
__interrupt(0x0) __frame() void _start( void )
{
PSW = 0; /* select register bank 0 */
XP = 0x00; /* needed when using __pdata */
ROMSIZE = 0x10; /* size internal Program memory */
SP = (unsigned char)_lc_bs; /* initialize system stack pointer */
_SP = _lc_ue_vstack_xdata-1; /* initialize ‘virtual stack‘ pointer */
_init(); /* initialize C variables */
main(0);
_exit();
}
/* The exit() function jumps to _exit. When it is required to restart
* the program SP and _SP should be initialized again (if applicable).
*/
void _exit( void )
{
while(1); /* loop infinite */
}
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)