Skip to main content

Hardware notes

What the SDK drives, and where each fact comes from: TI's documents for the TMS320C6748 (the technical reference manual, "TRM", and the data sheet), TI's StarterWare drivers (BSD), the codec's data sheet, or measurement on the unit. Facts marked [guess] are not confirmed. The headers named under each section are the working code.

The processor and memory​

A TI TMS320C6748: a C674x floating-point DSP core. It runs at 372 MHz as the unit sets it up (measured: 48 kHz audio frames timed against the cycle counter). 64 MB of DDR2 at 0xC0000000; Hako uses it from 0xC141B480 up (the memory map is in DESIGN.md). Caches: 32 KB L1P, 32 KB L1D, 256 KB L2, all as cache. lcd.h, cc.h.

Display​

A 240x320 panel on the LCD controller in LIDD mode (TRM, "LCD Controller"; StarterWare's raster.c for the set-up), 16-bit pixels with commands in the common MIPI DCS set. The panel's colour order is BGR (measured: 0xF800 shows blue), so the SDK writes BGR565(r, g, b). Reset is GP8[14], active low. The panel can't be read back; lab mode keeps a copy in RAM (lcd_shadow.h). lcd.h.

Frame transfer​

The LCD controller's own DMA sends a rectangle of pixels from RAM to the panel while the CPU does something else (TRM, LCDC DMA); fb.h sends changed runs of a RAM framebuffer this way, a little each audio block.

Backlight​

PWM from eHRPWM1 (TRM, "Enhanced High-Resolution PWM"); the SDK sets it on in case nothing did. lcd.h.

Controls​

Measured on the unit. Keys: 37 in a matrix, rows driven on GP2[0..4], columns read on GP5[0..7] (key = 8 x row + column; key_semitone() turns that into pitch). Buttons: 13, rows driven on GP3[12..15], columns read on GP4[0..3]. Encoders: five, A and B on GP3[2 + 2n] and GP3[3 + 2n], left to right (TYPE, then 1-4). LEDs: GP5[8..15], active low; bits 1 and 2 are ENVELOPE and FILTER, the others partly [guess]. Power: the button is GP4[13], active low; GP4[12] holds the power on (low switches the unit off), which is why a chip reset switches the unit off and rescue.h restarts softly instead. Battery: GP4[8..11], a thermometer-coded comparator (and AC power). GP4[11] and GP4[15] are presumably jack detect and the speaker amplifier [guess]. controls.h, lcd.h.

Audio​

A codec at I2C address 0x18 on I2C0 with the register map of TI's TLV320AIC3x family (its data sheet), clocked from a 24.576 MHz master clock; audio through McASP0 (TRM, "McASP") and EDMA, in blocks of 64 frames at 48 kHz, 32-bit stereo. Out: the line outputs and the headphones. In: AUX IN on LINE1L/R. SYNC IN shares one of the input's channels (slot 0, as clock.h reads it), and SYNC OUT is the codec's HPLCOM output, so pulses are audio samples (clock.h): never send SYNC pulses to an output someone listens to. audio_hw.h, clock.h.

Flash and boot​

A 16 MB SPI NOR flash on SPI0, CS0 (ISSI IS25LP128 class; the JEDEC ID read on the unit), set up as StarterWare's SPI driver does. It holds the bootloader and its boot menu, presets, the system program (Hako's loader goes here, by SYSTEM UPDATE), and from 0x800000 an 8 MB USB disk: an MBR with one FAT16 partition. The SDK writes only inside the disk's area, from 0x807000 up, and never the status register. spiflash.h, spiflash_wr.h, fat.h, ffdisk.h.

USB​

USB0, the C6748's USB 2.0 OTG controller (a Mentor MUSB core; TRM, "USB 2.0"), at full speed. As a device: class-compliant MIDI and the internal disk (usbdev.h, usbmidi.h, usbmsc.h). As a host, through TinyUSB's MUSB driver: hubs, sticks and MIDI devices (usbhost.h). How the unit powers the port in host mode is not known; a stick works through an OTG adapter.