Welcome to he forum.
Question 1:
Something like
random randomnum1
dice1num = (randomnum1//6)+1
Question 2:
Type: Posts; User: locko; Keyword(s):
Welcome to he forum.
Question 1:
Something like
random randomnum1
dice1num = (randomnum1//6)+1
Question 2:
Sorry, I have never used PiBasic with the MPLAB plugins so cant help you with that but I'm sure someone else will chime in with ideas.
I would suggest that you download Microcode studio and give...
http://www.rickard.gunee.com/projects/video/pic/howto.php
Happy reading.
What about using your adcin 'audio' value as the seed - it seems like it should give you some randomness.
I tried this last year and gave up on it. Without using fast AD devices the results were not what I was hoping for - unless someone know a better way.
Below is a link to the project files (VS2008)...
You are right about the access times of the chips Vs a pic, somewhere in the 90 to 120ns depending on manufacturer but I dont know fast the ECU will read off the data, I doubt it will be running as...
14 bit address bus....
8 bit data bus...
2 bit chip and output enable.....
Lots of pins already, but it could be done. You would need to monitor the OE and CE pins and then read the address and...
I was thinking of trying this one for a future project...
After a few day dreams, I was leaning towards not tracking the wheel movement but use an independent rotating fan type thing that I could...
http://en.wikipedia.org/wiki/Mass_flow_sensor
This is untested, but was thinking of trying it someday....
The theory.
Leave an analog pin floating and take a voltage measurement to use as the seed for the random number.
Not sure how mach...
I place a random statement to the main loop, that way while waiting for a button push you are randomizing in the background.
Paul
I made a simple temp/rh controller for my wife's crab tank a long time ago. I found better results when I averaged the readings and gave it a plus/minus window. Eg. temp drops below the low setting -...
Wayne,
I'm affraid not, I have been trying to modify the core assembler files and come up with PBP code to handle interrupt transfers for an outstanding project of mine but without any luck. No...
Hi wayne,
I'm not 100% sure what you are describing so correct me if im wrong..
As I undersatand it, you are sending data from a pic which is recieved by the PC application and then the...
OK, I have messed around with my setup a little.
I have tried moving my pbp folder to different locations and can not get the same error.
MCS+ runs fine with and without admin rights here.
The...
I removed the MCS+ link to pbp and when I tried to compile something it did a search and found it - so if it is still saying no compiler etc, it is either not in the standard directory or it is in...
Humble appologies to Mister-e :), it was a long time ago I saw the util......
Paul
Hi Chris,
You are right on with your thought process, all you have to do is put it together and try it out. The basic clock freq for the timer is 1uS for a 4MHz osc (fosc/4).
You will find plenty...
I have the same setup as you and it all went on fine.
If you have tried installing with admin rights and tried running with admin rights, the only other thing I can think of is.....
Are you...
Hi Dave,
Thanks for the reply.
Got that far. My descriptor is set for 1 interface and endpoint1in is set for 8 byte buffer length and interrupt.
Not sure about this one. I have no report...
Thanks Skimask, the demo was fantastic - I used it as my jump point to get in to USB but as DT says, there is nothing for interrupt transfers.
Thanks for the replies guys, it looks like I may be...
OK, I give up..... has anyone got any experiance of handling interrupt transfers using the microchip USB framework code, USB18.asm etc.
I have been reading through the files (on and off for 2...
If you dont mind extra components, a small capacitor before your limiting resistors would give the affect your looking for.
Paul
Couple of things to keep in mind with Vista....
The vista UAC... the program files folder can only be written to by a program with administrator rights. If you keep your pic files in your...
Hah! I would never have thought about using a 7805 for that purpose..... Nice!
I will never forget this one, hehehe