PSoC™ 6 Forum Discussions
All,
When will the PSOC 6 devices be available in QFN or TQFP? I see it was supposed to be sampling in 2019??? Will it be available in 2020? Are there engineering samples? I have few designs that need the processing power and cannot use bga or csp or the module with radio. I just need the single core device running at 150 mhz. Please let me know.
Thanks,
Eric
Show LessHello,
We are using ModusToolbox2.0 to develop CY8CKIT_062_WIFI_BT with Amazon AWS FreeRTOS. We have configured another uart port for AT-command transmit and receive.
When we need to disable uart then enable again, it will cause uart read function cannot work. We used "at_uart_init" and "at_uart_deinit" to implement enable and disable.
Please review my code as attached and give some advice.
Thank you for your help.
BR,
Wayne
Show LessWhen I refer to routine that Block_Mode_Flash_Write,I want use API to save data and read this data when I restart MCU.But I can't find any API about read flash data.Can you give me some advice?
I have a project for which the underlying codebase was developed in PSoC Creator but the user will be using a higher level programming interface to do some simple setup. One of the things they can do is create an encoder object. In order to do this I need to setup a TCPWM instance directly in code by calling the PDL functions and similarly assign the inputs via the trigger multiplexer. This all seems perfectly fine, but the issue is that I can't figure out a way to guarantee that I don't potentially break (by trying to reuse) trig mux channels that the PSoC Creator has already configured? The same applies to TCPWM channels, but at least they seem relatively easy to find in the component generated source.
Show LessIn the select debug target window the two cortex are not shown. Instead the window show something as follows:
The board used is PSoC 6 BLE Prototyping Kit (CY8CPROTO-063-BLE). The program previously programmed into the PSoC is a ADC that read voltage from a GPIO pin.
Show LessI am working on CYBLE-416045-02 EZ-BLE Module and HX711 24-Bit Analog-to-Digital Converter (ADC) for Weigh Scales.
As per datasheet link----https://cdn.sparkfun.com/assets/learn_tutorials/5/4/6/hx711F_EN.pdf
https://cdn.sparkfun.com/assets/learn_tutorials/5/4/6/hx711F_EN.pdf
Serial Interface
Pin PD_SCK and DOUT are used for data retrieval, input selection, gain selection and power down controls. When output data is not ready for retrieval, digital output pin DOUT is high. Serial clock input PD_SCK should below. When DOUT goes to low, it indicates data is ready for retrieval. By applying 25~27 positive clock pulses at the PD_SCK pin, data is shifted out from the DOUT output pin. Each PD_SCK pulse shifts out one bit, starting with the MSB bit first, until all 24 bits are shifted out. The 25th pulse at PD_SCK input will pull DOUT pin back to high (Fig.2). Input and gain selection are controlled by the number of the input PD_SCK pulses (Table 3). PD_SCK clock pulses should not be less than 25 or more than 27 within one conversion period, to avoid causing serial communication error.
Reference Driver(C)
//-------------------------------------------------------------------
sbit ADDO = P1^5;
sbit ADSK = P0^0;
unsigned long ReadCount(void){ unsigned long Count; unsigned char i;
ADDO=1;
ADSK=0;
Count=0;
while(ADDO);
for (i=0;i<24;i++)
{ ADSK=1;
Count=Count<<1;
ADSK=0;
if(ADDO)
Count++;
}
ADSK=1;
Count=Count^0x800000;
ADSK=0;
return(Count);
}
_______________________________________________________________________________
For Arduino sample code:
/* This program takes 10 samples from LC + HX711B at
1-sec interval and then computes the average.
*/
unsigned long x = 0, y=0;
unsigned long dataArray[10];
int j = 0;
void setup()
{
Serial.begin(9600);
pinMode(A1, INPUT); //data line //Yellow cable
pinMode(A0, OUTPUT); //SCK line //Orange cable
}
void loop()
{
for (int j = 0; j < 10; j++)
{
digitalWrite(A0, LOW);//SCK is made LL
while (digitalRead(A1) != LOW) //wait until Data Line goes LOW
;
{
for (int i = 0; i < 24; i++) //read 24-bit data from HX711
{
clk(); //generate CLK pulse to get MSB-it at A1-pin
bitWrite(x, 0, digitalRead(A1));
x = x << 1;
}
clk(); //25th pulse
Serial.println(x, HEX);
y = x;
x = 0;
delay(1000);
}
dataArray
}
Serial.println("===averaging process=========");
unsigned long sum = 0;
for (j = 0; j < 10; j++)
{
sum += dataArray
}
Serial.print("Average Count = ");
sum = sum / 10;
Serial.println(sum, HEX);
// float W = (float)0.90*(sum-901002)/946560 + 0.75;//0.005331 * sum - 1146.176;
//W = (float)W / 1000.00;
Serial.println(W, 2);
}
void clk()
{
digitalWrite(A0, HIGH);
digitalWrite(A0, LOW);
}
-----------------------------------------------------------------------------------------
while the development of a similar code. I am struggling to access HX711 serial pin via ADC as input and output. I am looking for support of the HX711 sample code with ADC or GPIO pin configured to configured HX711 in your project.
Best Regards
Deepak Aagri
Show LessHi, I have a custom board with CYBLE-416045-02. It is powered by a powerbank.
The power supply of the CYBLE can be interrupted by a MOSFET switch. If interrupted, the powerbank goes to sleep after a few seconds, the output voltage drops to 2,3V. This is ok and works as intended.
The problem is that I have an analog input pin for voltage measurement. There is a voltage divider of 27kOhm to the plus input and 10kOhm to ground. Even if the powerbank sleeps, there are still 0,62V present at the analog input pin. As a result, VDD goes to 0,33V, and some other I/O pins also stay at 0,33V. The PSoC6 is not running but also not completely off. I need the output pins to be at 0V when the PSoC6 is not powered.
When the 27kOhm resistor is removed, VDD and the other pins all go to GND level as intended.
I understand that this is a kind of back powering issue. I had a similar issue with UART and a PSoC4 that could be solved by adding a 10kOhm resistor in the RX line.
Here I have a 27kOhm resistor between the voltage source and the input pin, the voltage is lower, and still face issues.
I also understand that a pin with hot swap ability should be used, but there are no such pins on the CYBLE-416045-02.
What can I do to solve this problem?
Show LessHi everyone
I'm just a beginner in programming with Cypress's products. I've recently used CY8PROTO-063-BLE PSoC 6 BLE Prototyping Kit for some example of my work but the hardware dependency of code example is almost CY8CKIT-062 PSoC6 BLE Pioneer Kit. I think both of them don't have a lots differences so I try to build the example into my prototyping kit. However, the bluetooth signal between my phone and kit aren't continuously connected and in most successful cases are lower than 5 times in total of 30 times. Beside that, the debug result on PUTTY is not perfect. In my opinion, the problem comes from the improper hardware, does it right? If not, what is the problem? and can you introduce some example that corresponded with my PSoC 063 BLE kit.
Thank you so much !!!
Hello I try implement programming my psoc 62 microcontroller via externall programmer.
I have problem with acquire chip method A (I'm using Programming Specifications.pdf) , I have connection with mcu and I'm reading good core ID(0x6BA02477), but i have problem in next step with Dap_Scan()- when i read CPUID register I always get 0x3 and i dont have any idea why also when I trying read dhcsr register i get 0x3 any ideas?