My best guess is that you use the emulation capabillities of the tpu.
In this case you are using sram as the "control store" in which you
load the microcode. Like Charles said address fffe00 is tpu parameter
ram (channel $e parameter ram to be precise) depending on the modmap.
Assuming you are using the emuram you should be able to find the
"control store" data in hex format or included in s19 format.
For as far as I understand you are trying to write your own timer
functions? For as much as I've done with microcode programming it is a
whole new ballgame so good luck with that. For assembling your own set
of timer functions you can use the tpu macro assembler (tpumasm) which
can be downloaded at motorola for free.
I don't realy know what you want to use the tpu for but if you look
arround there is a substancial library of timerfunctions available at
motorola (mask a, g) which accomadates most programmers.
I think there is also a tpu-simulator trial at ashware on which you
can
test your microcode.
Regards, Remko
--- In 68300@yahoogroups.com, Melear Charles-rdph40
<charles.melear@m...> wrote:
> Rowen,
>
> The registers that are used to set up the TPU are at a base offset
of $ff fe00. This is where the module configuration register, the
Channel Function Select registers, Host Service Request Registers,
etc. are located.
>
> The parameter RAM is located at a base offset of $ff ff00 or $7f
ff00, depending upon the programming of the MM bit in the Module
Configuration Register.
>
> I don't know what header file would start at an offset of $a000.
Are you using custom microcode for the TPU or are you using the
standard TPU functions?
>
>
>
> What may be happening is that the original programmer is using $FF
FE00 to tell the program WHERE the registers are located.
>
> The file at $A000 may be the actual program that programs the
registers located at $FF FE00.
>
> This is just a guess.
>
> Regards,
>
> Charlie
>
> -----Original Message-----
> From: Rowen [mailto:sanuriel@y...]
> Sent: Monday, August 11, 2003 2:29 PM
> To: 68300@yahoogroups.com
> Subject: [68300] Trouble programming TPU
>
>
> Hello all,
>
> I'm currently working on a project that involves a MC68332 in which
> I need it to be able to read the length of pulses using its TPU
> lines. However I have a few issues. First of all until this point
> the only assembly I've programmed has been for Intel processors so
> it feels very unfamiliar here. Secondly the device has two header
> files that seem called by a main header file. One says "TpuBase =
> 00a000" the other states "tpubase = fffe00" I'm not sure which is
> right, but I know I can't get a program to compile to get this
thing
> working...Thanks all
>
> Rowen
>
>
>
> Yahoo! Groups Sponsor
>
> ADVERTISEMENT
>
<http://rd.yahoo.com/M=251812.3170658.4537139.1261774/D=egroupweb/S=17
06554205:HM/A=1693352/R=0/SIG=11tralmvc/*http://www.netflix.com/Defaul
t?mqso=60178293&partid=3170658> click here
> <http://us.adserver.yahoo.com/l?
M=251812.3170658.4537139.1261774/D=egroupmail/S=:HM/A=1693352/rand=958
345015>
>
> ---------------------------------------------------
> To unsubscribe from this group, send an email to:
> 68300-unsubscribe@yahoogroups.com
>
> To learn more about Motorola Microcontrollers, please visit
> http://www.motorola.com/mcu <http://www.motorola.com/mcu>
>
>
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .
Show quoted textHide quoted text
>
>
>
>
> [Non-text portions of this message have been removed]