JLS

Members
  • Content count

    28
  • Joined

  • Last visited

Posts posted by JLS


  1. Hi all

     

    Please help me with simple GPIO not working !

     

    I´m use Papilio One 500 + LogicStart MegaWing + schematic library 1.4.1 bit file + ZAP 2.0.7

     

     

    int led[8] = {40,41,42,43,44,45,46,47};

     

    void setup() {

     

    for(i=0;i<8;i++){ 
     
      pinMode(led,OUTPUT);
      digitalWrite(led,HIGH) ;
      
      delay (100); }
     
    }
     
    Light only one led diode same time. Not possible on more diode than one.
     
    Thanks help
     
    Kamil

     


  2. sorry next few questions :-)

     

    1. on your site is three different version bit file. Version with SID and VGA this two version not support deltasigma DAC ?

     

    2. ZPUino support PWM on output PINs ? Please example thanks

     

    3. Is possible make simple example how to basic run with SID POKEY and YM2149 ?

     

    Many thanks help :-)

     

    Kamil


  3. Simple question. Im make chua oscillator sketch with deltasigma DAC. This working but dont understand how to write two independent DAC value. ( example DAC0 = x and DAC1 = y value )

     

     

    #include <math.h>
          
      float x = 0.5;
      float y = 0.25;
      float z = 0.125;
      float oldx = 0;
      float oldy = 0;
      float oldz = 0;
      float h = 0;
      float dt = 0.005;
      float alpha = 15.6;
      float beta = 28.58;
      float a = -1.14286;
      float b = -0.714286;
      
      int outx,outy;
            
      int pindac0 = 0;
      int pindac1 = 1;
     
     
    void setup() {
     
      pinMode(pindac0, OUTPUT);
      pinModePPS(pindac0, HIGH);
      outputPinForFunction(pindac0, 0);
      
      pinMode(pindac1, OUTPUT);
      pinModePPS(pindac1, HIGH);
      outputPinForFunction(pindac1, 0);
     
      
      SIGMADELTACTL = 0x03;
    }
     
    void loop(){
     
      oldx = x;
      oldy = y;
      oldz = z;
      
      h = (b * x) + (0.5 * ( a - b ) * (fabs(x+1) - fabs(x-1)));            
      x = oldx + dt * (alpha * (oldy - oldx - h));
      y = oldy + dt * (oldx - oldy + oldz);
      z = oldz + dt * (-beta * oldy);
            
      outx = 32768 + int(13500*x);
      outy = 32768 + 5 * int(13500*y);
       
      SIGMADELTADATA = outx;
     
     
     
    Please help me with example two independent DAC.
     
    Many thanks
     
    Kamil