Download Print this page

Pentek 4284 Operating Manual page 98

Tms320c40 digital signal processor mix baseboard for vmebus systems

Advertisement

å§ ± ∑§™ [ â≤£§Ø[ omso[ ã≥§ µ †∑®± ¶[ ↠± ∏† Ø
|in
ë∂®±¶[∑ߧ[íâÅ°∏∂[â†∂∑§µ[Ö±∑§µ•†¢§[†±£[~≤∞∞[å≤µ∑∂[
void init_84(void) /* Function to initialize 4284 pointers and buffers */
{
uint i, j;
*datain
*dataout = 0;
*out_in = 0x7055u;
*cntrl = 0xffff0000u;
*vme_reg
/* set up ramp test function in output buffers */
for(i = 0; i < 0x2000; i = i + 4)
{
for (j = 0; j < 4; j++)
{
*(OutBufA + (i+j)) = (i << 18) | (j << 8);
*(OutBufB + (i+j)) = (i << 18) | (j << 8);
*(OutBufC + (i+j)) = (i << 18) | (j << 8);
*(OutBufD + (i+j)) = (i << 18) | (j << 8);
}
}
}
void led_on(void)
{
*vme_reg = (*vme_reg) | 0x40;
}
void led_off(void)
{
*vme_reg = (*vme_reg) & (~0x40);
}
void toggle_led(void)
{
*vme_reg = (*vme_reg) ^ 0x40;
}
vuint in_comm_port(vuint port_no, vuint *data)
{
vuint *comm_port_address, i;
comm_port_address =(vuint *)((port_no * 16) + 0x100040u);
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
= 0;
/* the control for in and out c40 comm ports */
/* 0x70 = input control, 0x55 = output control */
/* dual port DRAM - user control - flag */
= A24 << 8;
/* Function to turn on Model 4284 front panel LED */
/* Function to turn off Model 4284 front panel LED */
/* Function to toggle (on/off) Model 4284 front panel LED */
c¢≤±∑®±∏§£d
/* C40 input comm port function */
å† ¶ §[|hl n
é§πiu[[Çim

Advertisement

loading

Related Products for Pentek 4284