Shop OBEX P1 Docs P2 Docs Learn Events
Memsic Demo — Parallax Forums

Memsic Demo

heathclfheathclf Posts: 43
edited 2008-08-27 03:15 in Propeller 1
1 cause, 3 objects

1 -
I have now put in quite a bit of time trying to get Beau Schwabe's "Memsic 2125 graphic demo v1.1" object working. I'm sure it works great, and comes down to me not quite knowing my stuff, but could someone please help me out?

I have the 2D Acc X and Y on pins 16 and 17 and TV pins on 1 (1k), 2 (500) , 3 (220). I otherwise have the video working with the TV object (at least as far as Chip Gracey's "TV Terminal Demo v1.0.1"), but I can't seem to get this Memsic object to display anything at all.

My first guess is that I can't find where exactly the TV pins are assigned. I probably just somehow missed it, but it seems that it' sin the DAT block at the bottom, maybe the 3rd line?

tvparams long 0 'status
long 1 'enable
long %001_0101 'pins

I'm not too familiar with Spin's assembly. Could someone shed some light?

Any help would be much appreciated. I've had some success with the chip up until now, and would really like to get this working as well.

Damz! Got it. Nevermind...again. Tried for 3 days, and got it just after post!

2 -
Also, I can't get Paul Baker's "Memsic Dual Accelerometer Simple Demo v1.0" to work correctly. I can display some numbers...but they don't seem to correspond to the waveforms that my 2D Acc is putting out. I am checking it out with a scope, and it changes accordingly, but the numbers that appear on the screen don't.

3 -
Can't get Paul Baker's "Memsic Dual Accelerometer Demo v1.0" to work (it's his other object). It uses the TV object, which is coded in assembly. In the DAT block, you'll find

'' long tv_pins '%pppmmmm = pin group, pin group mode write-only

and

'' bits 6..4 select pin group:
'' %000: pins 7..0
'' %001: pins 15..8
'' %010: pins 23..16
'' %011: pins 31..24
'' %100: pins 39..32
'' %101: pins 47..40
'' %110: pins 55..48
'' %111: pins 63..56

'' bits 3..0 select pin group mode:
'' %0000: %0000_0111 - baseband
'' %0001: %0000_0111 - broadcast
'' %0010: %0000_1111 - baseband + chroma
'' %0011: %0000_1111 - broadcast + aural

I believe they correspond to the line I pasted earlier, but I still thought the TV object only used 3 pins. Why is it using 7, and how do I know which resistor to hook up to each of these signals (baseband, broadcast, etc.)?

Very confused, and going blind looking through this. Thanks a lot for your help.

Post Edited (heathclf) : 8/27/2008 12:51:29 AM GMT

Comments

  • Beau SchwabeBeau Schwabe Posts: 6,560
    edited 2008-08-27 02:17
    heathclf,

    "Damz! Got it. Nevermind...again. Tried for 3 days, and got it just after post!" - Do you still need some help with your code?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • heathclfheathclf Posts: 43
    edited 2008-08-27 02:30
    No, your code works great. Just had to look a little harder.

    Thanks.
  • Beau SchwabeBeau Schwabe Posts: 6,560
    edited 2008-08-27 03:08
    Ok, thanks! - glad you got it working! - sorry it took 3 days ... lol

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • heathclfheathclf Posts: 43
    edited 2008-08-27 03:15
    Yeah...me too, ha. That's the thing with code. Doesn't matter how close you get, until you're dead on.
Sign In or Register to comment.