PSoC™ 5, 3 & 1 Forum Discussions
PSoC™ 5, 3 & 1
PSoC™ 5, 3 & 1
I'm using a 12 bit ADC attached to pin 01 and I'm communicating with a DS75 temperature sensor attached to pins on port 1. I have to rou...
Show More
I'm using a 12 bit ADC attached to pin 01 and I'm communicating with a DS75
temperature sensor attached to pins on port 1.
I have to routines:
The first one reads out the temperature sensor IC and sends the temperature over RS232
to the computer.
The seconds reads the 12 bit ADC and sends it also to the computer.
The problem:
When I'm just reading out the temperature or the voltage everything works.
BUT when I first read out the temperature and afterward the voltage the program hangs
at the "lcall ADCINC12_1_fIsDataAvaliable" command.
Thanks in advance for any help regarding to this problem!!!
The routines:
;============================================================
; Send Temperature over UART
;============================================================
Send_Temp:
mov [Tmp_Address], 0 //Read Temperature from Device with address 0
lcall tmp_read //Read it
mov A, [Temp] //Send it to Computer
lcall UART_1_PutChar
mov A, [Temp+1]
lcall UART_1_PutChar
ljmp loop //Jump back
;============================================================
; Send AD-Value over UART
;============================================================
Send_AD:
lcall ADCINC12_1_fIsDataAvaliable // If conversion complete....
jz Send_AD
lcall ADCINC12_1_ClearFlag
lcall ADCINC12_1_iGetData // Get result, convert to unsigned and clear flag
mov [iResult+1], A
mov [iResult+0], X
add [iResult+0], 0x08 // add 0x0800 to result
mov A, [iResult+1] //Send MSB first
lcall UART_1_PutChar
mov A, [iResult+0]
lcall UART_1_PutChar
ljmp loop Show Less
temperature sensor attached to pins on port 1.
I have to routines:
The first one reads out the temperature sensor IC and sends the temperature over RS232
to the computer.
The seconds reads the 12 bit ADC and sends it also to the computer.
The problem:
When I'm just reading out the temperature or the voltage everything works.
BUT when I first read out the temperature and afterward the voltage the program hangs
at the "lcall ADCINC12_1_fIsDataAvaliable" command.
Thanks in advance for any help regarding to this problem!!!
The routines:
;============================================================
; Send Temperature over UART
;============================================================
Send_Temp:
mov [Tmp_Address], 0 //Read Temperature from Device with address 0
lcall tmp_read //Read it
mov A, [Temp] //Send it to Computer
lcall UART_1_PutChar
mov A, [Temp+1]
lcall UART_1_PutChar
ljmp loop //Jump back
;============================================================
; Send AD-Value over UART
;============================================================
Send_AD:
lcall ADCINC12_1_fIsDataAvaliable // If conversion complete....
jz Send_AD
lcall ADCINC12_1_ClearFlag
lcall ADCINC12_1_iGetData // Get result, convert to unsigned and clear flag
mov [iResult+1], A
mov [iResult+0], X
add [iResult+0], 0x08 // add 0x0800 to result
mov A, [iResult+1] //Send MSB first
lcall UART_1_PutChar
mov A, [iResult+0]
lcall UART_1_PutChar
ljmp loop Show Less
PSoC™ 5, 3 & 1
I know that Cypress has great engineers and people of vision. I also know that most have not gone through what I have, when trying to get with...
Show More
I know that Cypress has great engineers and people of vision. I also know that most have not gone through what I have, when trying to get with the program.
I bought a psoc when they first came out and wanted to see this great new technology. I bought a development kit and received a board, which did, indeed, show me the possibilities of the psoc. To explore this further I had to buy a new compiler since psoc didn't use any of the three professional c compilers I had for embedded work. A little further along I wanted to utilize an ice tool to explore more about the psoc and was pretty pissed when I found the only way to get ice was to buy another compiler. Bundling, it seemed, was the order of the day. $100 doesn't seem like much but I wasn't happy. So I bit the bullet and got the ICE Cube. Now you're going to jtag with no mention of an ICE tool for the 3 or 5? I understand that you have a cable that transforms a miniprog3 into a programmer for the 3 and 5. I bought a miniprog 3 in one of my yellow brick road journeys to learn the psoc, I believe it was when you came out with designer. I can't buy the cable though. Only if I buy another miniprog3 in the DVK. Come on guys. You owe a loyalty to your old customers. Don't leave us with compiler codes which no longer work or miniprog3's which don't work with the new chips!
I know some spoiled rich kid or corporate troll will take me to task for being so miserly, but it really is a matter of principle. Show Less
I bought a psoc when they first came out and wanted to see this great new technology. I bought a development kit and received a board, which did, indeed, show me the possibilities of the psoc. To explore this further I had to buy a new compiler since psoc didn't use any of the three professional c compilers I had for embedded work. A little further along I wanted to utilize an ice tool to explore more about the psoc and was pretty pissed when I found the only way to get ice was to buy another compiler. Bundling, it seemed, was the order of the day. $100 doesn't seem like much but I wasn't happy. So I bit the bullet and got the ICE Cube. Now you're going to jtag with no mention of an ICE tool for the 3 or 5? I understand that you have a cable that transforms a miniprog3 into a programmer for the 3 and 5. I bought a miniprog 3 in one of my yellow brick road journeys to learn the psoc, I believe it was when you came out with designer. I can't buy the cable though. Only if I buy another miniprog3 in the DVK. Come on guys. You owe a loyalty to your old customers. Don't leave us with compiler codes which no longer work or miniprog3's which don't work with the new chips!
I know some spoiled rich kid or corporate troll will take me to task for being so miserly, but it really is a matter of principle. Show Less
PSoC™ 5, 3 & 1
On page 24 of the CY8C24x23A data sheet, table 21 specs the analog output buffer 's output resistance as 1 Watt, typical. I don't think...
Show More
On page 24 of the CY8C24x23A data sheet, table 21 specs the analog output buffer 's output resistance as 1 Watt, typical.
I don't think I've ever seen this form of specing output impedance before, and I can't seem to find anything in any of my usual places for information.
Could someone help me understand this please? Thanks in advance! Show Less
I don't think I've ever seen this form of specing output impedance before, and I can't seem to find anything in any of my usual places for information.
Could someone help me understand this please? Thanks in advance! Show Less
PSoC™ 5, 3 & 1
Since PSoC analog circuitry uses a virtual ground (AGND), what are some of the ways to bring out the "ground reference" for external circuitry...
Show More
Since PSoC analog circuitry uses a virtual ground (AGND), what are some of the ways to bring out the "ground reference" for external circuitry, and to interface voltages referenced to system GND to the analog circuitry on the PSoC?
One way is to connect the AGND reference via a Refmux through a CT block and out an output buffer, but that uses up a resource.
I've brought AGND out on Port2_4 and buffered it externally.
For example, I would like to measure current out of a photodiode, but wanted a 'stiff' reference for making the measurement.
I'm also interested in sensing the drive current to a motor to detect stalls -- here, the current can be quite high, so I'll need a current-sensing resistor interfaced to the PSoC that would allow measurements to fall within the REFHI/REFLO range. Show Less
One way is to connect the AGND reference via a Refmux through a CT block and out an output buffer, but that uses up a resource.
I've brought AGND out on Port2_4 and buffered it externally.
For example, I would like to measure current out of a photodiode, but wanted a 'stiff' reference for making the measurement.
I'm also interested in sensing the drive current to a motor to detect stalls -- here, the current can be quite high, so I'll need a current-sensing resistor interfaced to the PSoC that would allow measurements to fall within the REFHI/REFLO range. Show Less
PSoC™ 5, 3 & 1
Hi Everybody, Welcome to the PSoC3 Architecture Forums. This forum will have discussions about PSoC3 architecture, PSoC3 Analog and Dig...
Show More
Hi Everybody,
Welcome to the PSoC3 Architecture Forums. This forum will have discussions about PSoC3 architecture, PSoC3 Analog and Digital resources, PSoC3 applications etc. Show Less
Welcome to the PSoC3 Architecture Forums. This forum will have discussions about PSoC3 architecture, PSoC3 Analog and Digital resources, PSoC3 applications etc. Show Less
PSoC™ 5, 3 & 1
PSoC™ 5, 3 & 1
I talked to the local rep yesterday and was told that PSoC Creator will include a full C Compiler for the PSoC5. Does this mean that GCC will ...
Show More
I talked to the local rep yesterday and was told that PSoC Creator will include a full C Compiler for the PSoC5. Does this mean that GCC will be used?
Will the SWD debug support ITM channels as defined in ARM CMSIS documentation?
Are there any kits currently available with the PSoC5?
Rep indicated that it will probably be 2Q next year before wilicon is available to sample. Is this true for eval kits/modules as well?
When will PSoC Creator component libraries be updated to provide master I2C?
Is it true that Verilog can be used for components? Show Less
Will the SWD debug support ITM channels as defined in ARM CMSIS documentation?
Are there any kits currently available with the PSoC5?
Rep indicated that it will probably be 2Q next year before wilicon is available to sample. Is this true for eval kits/modules as well?
When will PSoC Creator component libraries be updated to provide master I2C?
Is it true that Verilog can be used for components? Show Less
PSoC™ 5, 3 & 1
Hello *, I am new here and new to PSoC from Cypress. My enterprise "electronica@tdnet UG" and all of corporated enterprises usin...
Show More
Hello *,
I am new here and new to PSoC from Cypress.
My enterprise "electronica@tdnet UG" and all of corporated enterprises using exclusively the Linux Operating System and now I like to know, which tools I need to code under Linux without the need to buy usesless proprieatary stuff from Redmond.
Note: I do NOT use KDE/GNOME or other Desktop Environment. No, no Eclipse or such. Only plain TEXTEDITOR and Debuger and Compiler (I programmed my first 8039 in 1982 by feet using a switchboard for the addresses and data and a button to burn adress after adress)
Thanks in Advance
Michelle Konzack
Owner and Chefdeveloper
Tamay Dogan Network Show Less
I am new here and new to PSoC from Cypress.
My enterprise "electronica@tdnet UG" and all of corporated enterprises using exclusively the Linux Operating System and now I like to know, which tools I need to code under Linux without the need to buy usesless proprieatary stuff from Redmond.
Note: I do NOT use KDE/GNOME or other Desktop Environment. No, no Eclipse or such. Only plain TEXTEDITOR and Debuger and Compiler (I programmed my first 8039 in 1982 by feet using a switchboard for the addresses and data and a button to burn adress after adress)
Thanks in Advance
Michelle Konzack
Owner and Chefdeveloper
Tamay Dogan Network Show Less
PSoC™ 5, 3 & 1
I need to do a PWM with MOSFET IRF740, but I have difficulty to implement the PSoC CY8C29466. I'm using PSoC Designer latest version, but the ...
Show More
I need to do a PWM with MOSFET IRF740, but I have difficulty to implement the PSoC CY8C29466. I'm using PSoC Designer latest version, but the development is being in PSoC Express. I await answers, thank you.
Show Less