the g_Flag_Change from read, i have it defined as BOOL G_Flag_Change_From Read=0; before main to make it global ofcourse, and then inside i gpio interrupt i have it set to one, so when teh encoder...
Type: Posts; User: begginer
the g_Flag_Change from read, i have it defined as BOOL G_Flag_Change_From Read=0; before main to make it global ofcourse, and then inside i gpio interrupt i have it set to one, so when teh encoder...
would the flag condition ever need to be reset to zero?
what are the conditions for leave_function_now, and exit_loop_early
are they pre defined in c somewhere or they going to be my own functions i have to make
so i think i may have found a better way to break out of the for loop, i use a gpio interrupt which basically just reads the port, and if it senses a change in state, it interrupts and sets my flag...
so i know that "go to" are not the best for object oriented programing but this is going to solve all my issues, if i can ever get it working
so first i need to say that i am programming this...
i hate to go on a tangent about this, but here is what i am thinking, both of your points make tremendous sense but here is some of my code and though process...please let me know if i am on the...
NO ASSEMBLY FOR THIS GUY i took a class that using the HC112 micro in all asembly and about shot my self. i was just thinking there was going to be an easy way to tell how many cpu clock cycles it...
somebody might be able to correct me if i am wrong but here is a basic understanding of it
computer memory is cmos technology( which is a type of transistor) which we could get into a whole debate...
this may not be the best forum to post this in, but i have had great results posting comments here....thank you everyone for your help
what i am trying to figure out is how many clock cycles are...
i do know i need a main, the main is just a giant case statement that class this function
Run-Time Check Failure #3 - The variable 'image' is being used without being initialized.
it gives me...
depending which micro you have the code would be even simpler, for instance the micro i do all my programing with is the PSoC programmable system on chip and the languages are c or assemble but to...
here is my code all the way through, it complies fine but when i try and run the it it says the variable image is being used with out being assigned or blows up
{
byte **image; /* 2-d...
so here is my code so far, i am having trouble compling it i dont know why, but should this work this is just the function to find the min value i know that the max value would be the same
...
i need helping finding the mean maximum, and minimum values for a two d matrix, yes i know this may be simple problem but i am not the best coder in the world i am stuck, so what i have so far is i...
I am trying to write a function that finds the mean maximum and minimum values for an image yes an image, Which is nothing to extraordinarily because it is just a two d matrix of pixel values. So...
i know, i not yet gotten to make the code pretty yet, i need it all to work first, which is why i plan on factorizing it like you said and reducing it but i need to be able to break out of the for...
My main loop is just a while(1) with both the switch statements
So i know normally that to break out of a for loop you would just simply have to put the code "break" in and that will exit the loop, my issue is a little more complex. What i am doing is i have two...
so i am trying to get two seprete for loops to execute at the same time, i need to give everyone some background information, i am using a microcontroller the cypress PSoC to be exact so some of the...
thank you for you suggestion all though when i tried to implemet your code changing my previous funtion definitions and what not i got a ton of errors, and to be honest i am not sure what your code...
So first i would like to say that i am doing this programming inside a microcontroller based complier, but the language is still c, so i appreciate the help because i am stuck right now ,
so here...
I am trying to implement a random number generator
I am not using visual studies but the complier is still a c complier and i will explain any of the code that is not the standard "norm" in visual...
I am trying to make a decade counter in c, and not sure how to do it...I think this might work but not sure...
Not to insult any body intelligence but a decade counter lights up less in sequence...
the first function is main, and all it is the while loop, i forgot to copy the void main, its getting into the second function and never out of it