Shop OBEX P1 Docs P2 Docs Learn Events
Video Fireplace — Parallax Forums

Video Fireplace

DinodenDinoden Posts: 19
edited 2012-01-20 07:35 in Propeller 1
Hi all.

I am trying to run the Video Fireplace on the Hydra and I am stuck on one thing. I can get everything to work except the video. Audio and the "stoke" & "add wood" buttons work .I am using the expansion slot on the Hydra for the SD card and for now the NES controller for the buttons. Eventually I am going to go infrared to "stoke" and add "wood" via the aux button on my remote. I will mount the SD card and IR detector all on the Hydra expansion card. Any way, everything works but the video. I have set up the VCFG register to what I believe is correct and no video. This is what I changed below from the origional code.



' VCFG: setup Video Configuration register and 3-bit tv DAC pins to output (Config taken from the Hydtra manual)

movs VCFG, #%0000_1111 ' VCFG'S = pinmask (pin31: 0000_0111 : pin24) Hydra uses lower bits P24-P27
movd VCFG, #%011 ' VCFG'D = pingroup (grp. 3 i.e. pins 24-31)

movi VCFG, #%0_10_111_000 ' baseband video on bottom nibble, 2-bit color, enable chroma on broadcast & baseband
' %0_xx_x_x_x_xxx : Not used
' %x_10_x_x_x_xxx : Composite video to bottom nibble, broadcast to top nibble
' %x_xx_1_x_x_xxx : 4 color mode
' %x_xx_x_1_x_xxx : Enable chroma on broadcast
' %x_xx_x_x_1_xxx : Enable chroma on baseband
' %x_xx_x_x_x_000 : Broadcast Aural FM bits (don't care)

or DIRA, tvport_mask ' set DAC pins to output



I am thinking the "tvport_mask" is where my problem is. I think this is set to P12-P14 for the Propeller Platform and not P24-P27 for the Hydra. The problem is, I don't know how to go about changing this to set DIR 24 - DIR 27 to outputs in ASM.

Thank you,

Any help is greatly appreciated.

Dennis

Comments

  • kuronekokuroneko Posts: 3,623
    edited 2012-01-19 16:31
    Currently the driver uses:
    ' Video (TV) Registers
    tvport_mask      long    %0000_0111<<12
    
    With TV pins at 24..26 simply change it to
    ' Video (TV) Registers
    tvport_mask     long    %0000_0111<<[COLOR="orange"]24[/COLOR]
    
    Important bit here is that the 32bit value of tvport_mask has its bits 24..26 set. How you do it (style) is up to you. HTH
  • DinodenDinoden Posts: 19
    edited 2012-01-20 07:35
    Thanks kuroneko!

    I will give this a try when I get home from work.
Sign In or Register to comment.