Jump to content

LiFo

Members
  • Posts

    18
  • Joined

  • Last visited

    Never

Posts posted by LiFo

  1. dont take this the wrong way

    i am happy with all the help i have got an can get

    i am lazy and have always been

    and this is a project i am doing for a frend 

    so i am not so entusiastic and driven as many of you

    therfor am i seeking the shortcuts

    mobius to your question

    Let me ask You one question: Even with a detailed reply, Do You think you would accomplished this WITHOUT reading the datasheet and looking at the HD44780 command set?

    yes it would be sufficient to inform me that i have to do it my self

    and that i could turn off the text with 0x08

    and turn it on with 0x0c

    stryd_one

    (crikey your timer is set to 50ms my gosh that's a fast blink, I would go slower than that. I think that's more like vibration Wink )

    yes the timer is set for 50 ms but if you look at the ToggleBlink function you vil see that here is a counter

    so the real blink frequancy is ½ sec.

    sorry for my wage misleding question about the tempo

    you gave a long detailed explanation about something else than the thing i wanted (i think ? or i hope so else it sounds way to complicated)

    i don't even know my self what i want

    i am making a floorboard for my friend

    and i only implement what he tells me  and the hole proccess is extremly ad hoc

    and among other things he wants a tap/tempo or something button on it

    to transmit some cc ommand (i think, have not researched)

    and if it is only a command to send out

    then the idea was to track internaly the tempo he is tapping the pedal  and show the tempo on a diode

    but hey not problen i have figured the timer out so there is no problem there

    ps. Spelling errors don't exist in my univers only coding errors

  2. Mobius thanks for the verry positiv informativ anwser

    i was more looking for an anwser in the line of this

    >is there any command you can sent to the display to get it to blink

    >or is it only the cursur that is blinkin

    no there is no command to get the display to blink only the cursor

    >or have i to programm it my self to blink ?

    yes you have to

    but there is a command you can send to the display to hide (turn off) the text

    and another to show(turn on) the text again

    look at example furder down

    >if i have to make it blink my selv

    >i was thinking about using a timer somhow

    sounds like a good idea

    >i have only looked breafly at the function page and as i understand there are only 1 timer i can use

    >was also thinking to use another timer to make one dout blink a diode indicating the tempo

    >to get me started, some c examples using a timer would be realy great

    make 2 variables

    char blink;

    char blinkNr;

    in init methode

    void Init(void) __wparam

    {

    blinkNr = 0;

    blink = 0;

    //initialize timer to  fire each 50 ms

    MIOS_TIMER_Init(0x03,62500);

    }

    in the Timer function make this

    void Timer(void) __wparam

    {

    if(blinkNr == 10)

    {

    blinkNr = 0;

    TogleBlink();

    }else

    {

    blinkNr++;

    }

    }

    void TogleBlink()

    {

    if(blink == 0)

    {

    // sends a display on command

    MIOS_LCD_Cmd(8+4);

    blink =1;

    }else

    {

    // sends a display off command

    MIOS_LCD_Cmd(8);

    blink = 0;

    }

    }

    this maby a stupid way of doing it

    but i dont know any better

    and nowbody seams to be villing to help a newbie

    so this  is how i am going to do it

    and if another newbie like me wants to do the same think here is a simple solution

  3. is there any command you can sent to the display to get it to blink

    or is it only the cursur that is blinkin

    or have i to programm it my self to blink ?

    if i have to make it blink my selv

    i was thinking about using a timer somhow

    i have only looked breafly at the function page and as i understand there are only 1 timer i can use

    was also thinking to use another timer to make one dout blink a diode indicating the tempo

    to get me started, some c examples using a timer would be realy great

  4. from the doc's on the lcd function page 

    i thought the lcd line arrangement was like this

    //sets the text cursor on LCD screen

    // 0x00-0x3f: first line

    /// 0x40-0x7f: second line

    // 0x80-0xbf: third line

    // 0xc0-0xff: fourth line

    after experimenting a little i have no clue what is going on here

    made a littel simple program to test where the display was displaying

    the test program

    void DIN_NotifyToggle(unsigned char pin, unsigned char pin_value) __wparam

    {

      if(pin_value == 1)

      {

        switch(pin)

        {

        case 0 :

        val++;

        displayTest(val);

        break;

        }

      }

    return;

    }

    void displayTest(unsigned int val)

    {

    MIOS_LCD_Clear();

      MIOS_LCD_CursorSet(0x00);

      MIOS_LCD_PrintCString("verdi");

      MIOS_LCD_PrintBCD3(val);

      MIOS_LCD_CursorSet(val);

      MIOS_LCD_PrintCString("test string to g");

    return ;

    }

    the result from the test

    16 dec line 3

    40 dec line 2

    46 dec line 2

    80 dec line 4

    104 - 111 dec line 1

    120 - 128 dec  line 1

    148 - 155 dec line 2

    164 - 172 dec line 2

    188 dec line 4

    212 - 219 dec line 1

    104 - 111 menas that "the test string to g" starts at column 1 on line x

    dont know if my display is a little strange or what 

    but i think i can remember when i bought the display about 8 years ago

    there was somthing about that something had to be fliped, switched, reversed or negated to get it to work as an standard HD44780

    or it was just me that was drunk ?

    am using MIOS 1,8 and sdcc_skeleton_v1_0d

    and programming in C

    hope sombody has some idea what is going on here

     

     

     

  5. hi just wantet to inform you

    i have made a  Pic burner (MBHP_BURNER_V1) on a breadbord

    it is working fine (have just used it about 20 times to programm the same Pic18F452)

    BUT (there is always a but )

    when i first connect the burner to the pc and start the programming software  the Vpp light gos on after about 5 sec.

    if i the go under options / hardware and push the Vpp off  the vpp light goes off  but comes on again after about 5 sec.

    i can keep doing this for ever

    but if i push the Vpp on and then the Vpp off then it stays off

    and if i close the software and start it again later it works witout the vpp going on every 5 sec.

    this is probably a software error 

    but i just wantet to inform you

  6. hi

    have just build my first midibox and MBHP_BURNER_V1

    have trouble to use midi-ox but have managed to use mios studio upload version 1.7 of mios

    but i want to program in c and i can only finde a syx file of mios v 1,8 rc1

    can you post or send me an hex file of mios 1.8 so i can program in c

    and another question  is it okey to use sdcc version 2.5.0

    Thanks

    Martin

  7. Hi Raphael

    Great to hear

    i am not a musician my self

    Just a friend of one :-)

    And i know a little electronics and programming so he asked me

    I will just make it work the way my friend asks me to do it

    But maybe i can convince him to make it another way if you have an good idea for a really god product

    i have been looking at your site and it would be nice to get some idea of

    What you want your floor board to do

    Specs buttons displays functions gear??

    Are you also planning to make a loop box or just a floor board?

    I have been searching the net to find out what to use to switch between the pedals in the loop box

    My friend is concerned about the sound quality

    And is afraid that if I use relays it will come clicks/pops  

    I have found a Analog switch from analog devices (ssn2402) that looks to bee perfect but it is really really expensive

    So I was wondering if there was somebody that has some info on another way to do it

  8. hey i am going to make a floor bord and an loop box for a friend

    going to use 1 CORE + ½ DIN  + ½ DOUT and an display

    he wants it to work in a simarly way as skrydstrups sc-1 and mr8 (see http://www.skrydstrup.dk/home.htm

    2 buttons ( song up down)

    5 buttons ( preset 1- 5 )

    8 buttons ( for loops )

    1 button for programming mode

    the loop buttons are only going to be used when he want to enable/disable an loop that is not in a preset

    and when the programming button is pressed to program song titles and preesets for that song

    the loop box i haven't thought so much about

    i have just ordered the parts but i am going soon home for x-mas hollyday so i wil not start to put it together until next year

    am planning to program i C as my asm is minimal

×
×
  • Create New...