Alpha Blend Seiko Epson S1D13517 with C File, First on YouTube

Поділитися
Вставка
  • Опубліковано 19 жов 2024

КОМЕНТАРІ • 11

  • @courtneyjones8923
    @courtneyjones8923 Рік тому +1

    @John B great video, i saw the last one & was going to ask where is the Paris pic but i see you put it in as you got it all working, very nice again.

    • @JohnB-2021
      @JohnB-2021  Рік тому +1

      Thank you for your support Courtney Jones,
      I have wanted this for at least 5 years. Over one year ago I finally made a pcb, spent £45 on a used board on eBay. Removed the used Epson chip, they were not in stock in electronic suppliers. Put the Epson chip on my pcb, it blew up in less than one second because I had the pins on a 2.5 volt regulator back to front. Had to wait 361 days for a new Epson chip £10
      Fitted it to revised pcb and started these few Epson videos.
      I never thought I would ever get the alpha blend to work, it’s all very new to me so I am very pleased.
      Now I need a new goal, maybe Quad SPI?
      What is your current project?
      Thanks again.

    • @courtneyjones8923
      @courtneyjones8923 Рік тому +1

      @@JohnB-2021 Hey John i haven't done anything for a long while, the handheld scope i ask you about earlier this year cost me about $1000 TT and about 100 of your dollars but it only worked for about 3 weeks, i had a lot of ups & down but im waiting on a Handtek 2D72 handheld oscilloscope i'm getting from a good friend free of charge so i have to wait. i'm doing some reading up on writing codes in C, i have to ask where did you learn all the things you do when you write your codes, in terms of when you use &, ! to manipulate bits, i have your videos save in a folder on my pc so i can learn from them but i'm having trouble writing codes, i should of been a very long way from where i'm now. I'm an electrician by trade & i just love pic programming & the ability get it to do things, im working on ADC & servo right now. im hoping to be able to control servos like this some day (Ball and Plate PID control with 6 DOF Stewart platform) & im facinated by this also (Circular-Base-Stewart-Platform, Part 9, The Final Assembly) just search them on youtube. Have you ever use a shift register using soft spi to control leds & finally, i don't understand how to read & use the timing diagram. sorry for the lengthly post. Thank you in advance for your advice.

    • @JohnB-2021
      @JohnB-2021  Рік тому

      @@courtneyjones8923
      Hi Courtney,
      Shame he didn't use the same system to level his clock on the wall.
      Do you have windows calculator?
      Can you give me an example, short example' of code you do not understand.
      Above you write & for 'and' do you also mean not with the not ! symbol?

    • @courtneyjones8923
      @courtneyjones8923 Рік тому

      @@JohnB-2021 Hey John congratulation on your great job & finishing it after so many years, & lol on your first comment about the clock i never notice it.
      Yes i have windows calculator i use it when im trying to get my code correct using interrupts. Some years ago i was trying to generate 3 software pwm from my pic 18f2550 i got a lot of help from a site All About Circuits, i got the code from 1 of the admin but i didn't fully understand parts of it when it comes to clearing & ORing bits, this is part of the code
      // update PWM outputs with PRE-CALCULATED PWM bits..
      PWMtemp = LATA; // get current port bits
      PWMtemp &= ~PWMSmask; // clear out old PWM out bits
      PWMtemp |= PWMoutImage; // OR in the current PWM out bits
      LATA = PWMtemp; // write value to LATA with other bits unchanged
      // then calculate PWM output bits for NEXT interrupt
      it is clearly explained to me but here is where i get confuse, i know this sign is to toggle a bit (~) i know this is (&) and from the logic table when both bits are 1 you get a 1, but when i see it use in a code like this ( PWMtemp &= ~PWMSmask) i'm confuse as what's really going on. I don't just copy codes i try my best to learn, i know if you don't ask question it's hard to learn but i didn't want to be asking about every little thing i didn't understand. Thanks you for the help.

    • @JohnB-2021
      @JohnB-2021  Рік тому +1

      @@courtneyjones8923
      Hi Courtney,
      I understand.
      Or is the same as + in many examples.
      My code
      twoimage = 128;
      alpha value;
      twoimage | alphavalue is same as 128 + alphavalue.
      alphavalue counts up to 32.
      so twoimage + 32
      or twoimage | alphavalue is same as 128 + 32
      It's ok to use plus + if you know you are or'ing the bits together except adding bits can be confusing so one would 'or' them to show 2 different sets of bits.
      ~ tilda
      bits 4,3,2,1,0 of a register might be a timer preload or turn on your pwm or anything.
      if the above 4,3,2,1,0 = 0b10101
      swapping the bits with ~ would give you the opposite 01010
      The bits that were on get turned off and the bits that were off get turned on. It can work with 16 or 32 bits, not just 1.
      LATA meaning the latch registers of port A could = 10101010;
      LATA =~ LATA 01010101
      if a register = 11111111
      and you & it with a 00000001
      you will get 1 since both bit zeros are 1.
      10101010 & 00001000 you will get 1000 since both numbers have bit 3 turned on.
      10101010 is actually 170 and 1000 is 8
      Use windows calc and play in programmer view.
      in dec type 170 then hit the bitwise symbol and select AND then type second number, in this case 8.
      170 & 8 = 8.
      170 & 64 = 0 because in the number 170, bit 6 which is = to 64 is not turned on so 170 & 64 = 0
      170 bitwise button AND 128 = 128 because in both 170 and the number 128, bit 7 is turned on.
      These bits could be registers for a timer or pwm and you need to swap or invert them etc.

  • @mattmoreira210
    @mattmoreira210 Рік тому +1

    Fantastic. Well done!