1. 首页
  2. 课程学习
  3. 嵌入式
  4. 远程通信的实施

远程通信的实施

上传者: 2022-10-23 02:32:39上传 PDF文件 80.25 KB 热度 10次

Thisapplicationnotediscusseshowtoimplement“long

calls”inthePIC16C5Xarchitecture.Theuseoflongcall

cansimplifythepartitioningoftheapplicationprogram

withminimalsoftwareoverhead.

InthePIC16C5Xarchitecture,theprogrammemory

pagesizeis512words.Dependingonthedevice,the

programmemorymaybeaslargeas2Kwords(asin

thePIC16C57orPIC16C58devices).Theprogram

counter(andstack)widthrangefrom9-to11-bits,

dependingontheamountofprogrammemory.Table1

showsthewidthoftheProgramCounter(PC)and

Stackforthevariousdevices.

Theloworder8-bitsoftheprogramcounterare

accessiblebytheuserprogram.Thesebitsare

containedinthePCregister.AN581ImplementingLongCallsFigure1showsthestructureofthePC.SinceA8isAuthor:MarkPalmerforcedto0byCALLinstructions,thestartaddressofMicrochipTechnologyInc.subroutinesmustbeintherst256wordsofeachpro-grammemorypage.Dependingonthesizeandnum-berofcalledsubroutines,thislimitationmaybecomeaINTRODUCTION

下载地址
用户评论