Shop OBEX P1 Docs P2 Docs Learn Events
Video output (and other functions) with propeller C learning system. — Parallax Forums

Video output (and other functions) with propeller C learning system.

Devin FrioudDevin Frioud Posts: 17
edited 2013-07-12 08:17 in Propeller 1
Hello,

I'm just starting out with the propeller, and I don't really want to learn a language that is used by only one microcontroller.

I want to use one of Bill Henning's Morpheus boards, and I was wondering if all the functions were supported by Propeller C (VGA, PS/2, SPI RAM/FLASH).

Thanks,
Devin

Comments

  • Devin FrioudDevin Frioud Posts: 17
    edited 2013-07-10 19:23
    Any help would be appreciated!

    Thanks,
    Devin
  • Cluso99Cluso99 Posts: 18,069
    edited 2013-07-10 23:54
    Unfortunately I cannot help you answer the C question.
    However, FYI SPIN is not very difficult and is a mix of other languages. Indentation is forced and I consider this good practice anyway.
    Anyway, just hang in there for a reply from those in the know.
  • Martin_HMartin_H Posts: 4,051
    edited 2013-07-11 02:46
    Hi, I've been working with Prop C and in the samples they include a VGA example. I've also used the tool spin2cpp to translate spin into C++ and then compile it using Prop C. So it should be possible to do the other things on your list. If you look at my Arduino project thread you can see that I've gotten a fair amount of code ported to Prop C.

    http://forums.parallax.com/showthread.php/148401-Propeller-Chip-runs-a-mostly-unmodified-Arduino-program-(video)
  • Devin FrioudDevin Frioud Posts: 17
    edited 2013-07-11 08:29
    Thanks Martin_H and Cluso99!

    I found the VGA example, and the library under development.

    There's also an I2C library for EEPROM and RTC.

    Do you guys know how of any code examples for PS/2 input in propeller C?

    Thanks,
    Devin
  • Devin FrioudDevin Frioud Posts: 17
    edited 2013-07-11 08:38
    Also, I found a FullDuplexSerial function for inter-prop communications.
  • jazzedjazzed Posts: 11,803
    edited 2013-07-11 08:58
    Nothing I khow of yet for Simple libraries. There will eventually be a "Text Device" for KB, TV, and VGA.

    There is an example of TV + Keyboard here that can be leveraged as a Text Device:
    https://code.google.com/p/propgcc/source/browse/#hg%2Fdemos%2Ftvkbfile
    It would be fairly easy to do the same thing with VGA.
  • mindrobotsmindrobots Posts: 6,506
    edited 2013-07-11 09:01
    Devin,

    Welcome to the Forums!

    You can try this or an example of a keyboard program -> http://forums.parallax.com/showthread.php/138032-Keyboard-driver?p=1075578&viewfull=1#post1075578

    It's an old example but should still be workable.
  • Devin FrioudDevin Frioud Posts: 17
    edited 2013-07-11 13:23
    EDIT: PS/2 input as well, if mindrobots's code isn't compatible.

    Thanks everybody!

    I just found Catalina; does anybody have a guide for functions and syntax (like toggling pins high and low, accepting ADC input, video output, etc.)?

    Thanks,
    Devin
  • mindrobotsmindrobots Posts: 6,506
    edited 2013-07-11 15:11
    My "code" is just a link to code jazzed provided as an example long ago.
  • Cluso99Cluso99 Posts: 18,069
    edited 2013-07-11 16:57
    EDIT: PS/2 input as well, if mindrobots's code isn't compatible.

    Thanks everybody!

    I just found Catalina; does anybody have a guide for functions and syntax (like toggling pins high and low, accepting ADC input, video output, etc.)?

    Thanks,
    Devin
    Catalina comes with a lot of examples and good manuals. Download it and take a look. I use Catalina in a 3-prop commercial product but I did not write the C portion -it uses an external 512KB SRAM for running XMM code (means the code is fetched an instruction at a time from SRAM). Search the forum for LMM where XMM will also be explained, or check out the docs in Catalina.
  • Devin FrioudDevin Frioud Posts: 17
    edited 2013-07-11 17:49
    Hey guys!

    Thanks for the help;
    Your info will be useful for my next project!

    Anyways, since I just started out with the forums, I have no idea how to change this thread's prefix from unsolved to solved (yes, I know it sounds noobie).
    Can somebody help me?
  • Cluso99Cluso99 Posts: 18,069
    edited 2013-07-11 22:37
    You have to edit your first post and go into advanced editing.
  • Devin FrioudDevin Frioud Posts: 17
    edited 2013-07-12 08:17
    Thanks Cluso99!
Sign In or Register to comment.