FPGAExperimentor550

Members
  • Content count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About FPGAExperimentor550

  • Rank
    Newbie
  1. FPGAExperimentor550

    Variable Speed Clock

    Hello I would like to make a variable speed clock. Basic design is two push buttons and one output. One pushbutton increase clock Other pushbutton decreases clock I am not worried about exact hz numbers just increase decrease at the moment. I was wondering if anybody had a simple way of doing this.
  2. FPGAExperimentor550

    General IO Questions

    Thanks, that fixed the problem.
  3. FPGAExperimentor550

    General IO Questions

    Thanks the port defines worked...even though there are some problems I still think this is a great project and I appreciate all the effort. As far as the downloading issue goes here is what is occuring... 1.open zap 2.open program 3.select board and com port (lets say papilio 500k shifty) 4.press download.....program downloads fine 5.Edit the program 6.press download...board behaves as if a program has downloaded...but still runs last progrm...edits did not take effect. 7.switch to papilio 500k (load to flash) 8.press download....download works fine and program changes show they are working.. Due to this error I have to constantly switch between boards.. just fyi it makes no difference whether is start with flash load or just fpga load. It is almost like zap only looks at the first compiled code once selecting a board...so I have to change board type after editing the program. So here are two outputs...the first one is successful the second is the program edited...but download is unsuccessful...aka previous program is loaded. First download on opening board.. second download that does not take effect. So the board flashes like it was loaded but it is still running the old program... if you look closely the second output is missing this part... So that could be the problem but I don't know how to fix it... As far as the pins going high at startup. I tried.. 1.Going into the papilio loader and clicking erase...result was the pins went high and stayed high the hole time, and after power cycle same thing. 2.Then I loaded a program from zap and the pins still went high for a second as they did before. So basically... The pin define solution worked the compile issue still remains the pins going high on startup remain...
  4. FPGAExperimentor550

    General IO Questions

    I don't totally understand your define statements I tried the following and it did not work. It should blink all pins on board. //http://www.papilio.cc/index.php?n=Papilio.ArduinoCore#define DDRF (PORTF+(DDRA-PORTA))#define DDRC (PORTC+(DDRA-PORTA))void setup() { // put your setup code here, to run once: DDRA = 0xFF; //required...lower 8 bits DDRB = 0xFF; //DDRC = 0xFF; //uncomment compiler complains DDRD = 0xFF; DDRE = 0xFF; //DDRF = 0xFF; //uncomment compiler complains Serial.begin(9600);}void loop() { Serial.println("2"); // put your main code here, to run repeatedly: PORTA = PORTA | 0b11111111; PORTB = PORTB | 0b11111111; PORTC = 0b11111111; //compiler does not complain but it does not work PORTD = PORTD | 0b11111111; PORTE = 0b11111111; //PORTF = 0b11111111; uncomment compiler complains delay(1); PORTA = PORTA & 0b00000000; PORTB = PORTB & 0b00000000; PORTC = 0b00000000; PORTD = PORTD & 0b00000000; PORTE = 0b00000000; PORTF = 0b00000000; //uncomment compiler complains delay(1); }
  5. FPGAExperimentor550

    General IO Questions

    how do you set the zpuino pins as outputs?
  6. FPGAExperimentor550

    General IO Questions

    This is running ZAP 2.0.3 avr8 shifty papilio 500k on the BPC3003 V2.04 board (1) I am getting inconsistent downloads. I will change one line of code and try to re download, even though it says it has downloaded the results do not take effect. I have to switch between load to ram and load to flash for the changes to take effect...everytime. or restart the software. (2) Is it possible to stop the fpga pins from pulsing to 3.3v for 1 second on boot up? My board does this every time I power it on. No matter what code I run. (3) The avr8 says it supports port A-F but I have found through testing that all the pins are not functioning. Is there a way to make them function properly? I have found the following PORTA Works PORTB Works PORTC Does not work...compiler complains that DDRC was not defined. PORTD Works PORTE works PORTF Does not work...compiler complains that DDRF was not defined. compiler also claims portF was not declared in the scope I need to set 8bits at once...so I figured this is the only way to do that? (4)How to set a byte of data in zpuino? I need to move a byte 8 bits to io pins at one time...actually 16bits so I would normally use two byte to port moves. I am wondering the fastest way to do this using zpuino? I tried the following and it does not work.... This is running ZAP 2.0.3 zpuino vanilla 500k on the BPC3003 V2.04 board void setup() {}void loop() { GPIODATA(0) = 0xFFFF; delay(1); GPIODATA(0) = 0x0000; delay(1);}it compiles and loads but nothing happens. -any help is appreciated